openapi2callables.parse ======================= .. py:module:: openapi2callables.parse .. autoapi-nested-parse:: Parse module for OpenAPI spec files with enhanced capabilities. Functions --------- .. autoapisummary:: openapi2callables.parse.get_spec openapi2callables.parse.parse_spec openapi2callables.parse.extract_type_from_schema openapi2callables.parse.extract_constraints Module Contents --------------- .. py:function:: get_spec(spec_url_or_path) Get the OpenAPI spec from a URL or local file path. :param spec_url_or_path: URL or file path to the OpenAPI spec :returns: The parsed OpenAPI spec as a dictionary :raises ValueError: If the file type is not supported or the file/URL cannot be accessed .. py:function:: parse_spec(spec, tool_prefix = None, include_deprecated = False) Parse the OpenAPI spec into a dictionary of tools. :param spec: The OpenAPI spec as a dictionary :param tool_prefix: Optional prefix to filter paths :param include_deprecated: Whether to include deprecated operations :returns: A dictionary of tools, keyed by operationId .. py:function:: extract_type_from_schema(schema) Extract type information from a schema object. :param schema: The schema object :returns: The extracted type information .. py:function:: extract_constraints(schema) Extract validation constraints from a schema object. :param schema: The schema object :returns: A dictionary of constraints