Sha256: 64fc92b53a4f1ae33e639ecc5dbe5e1f0ab325b4127aafb09240913ea13933bb
Contents?: true
Size: 949 Bytes
Versions: 21
Compression:
Stored size: 949 Bytes
Contents
# TODO: info object # TODO: servers object # TODO: tags object # TODO: externalDocs object module OpenAPIParser::Schemas class OpenAPI < Base def initialize(raw_schema, config) super('#', nil, self, raw_schema) @find_object_cache = {} @path_item_finder = OpenAPIParser::PathItemFinder.new(paths) if paths # invalid definition @config = config end # @!attribute [r] openapi # @return [String, nil] openapi_attr_values :openapi # @!attribute [r] paths # @return [Paths, nil] openapi_attr_object :paths, Paths, reference: false # @!attribute [r] components # @return [Components, nil] openapi_attr_object :components, Components, reference: false # @return [OpenAPIParser::RequestOperation, nil] def request_operation(http_method, request_path) OpenAPIParser::RequestOperation.create(http_method, request_path, @path_item_finder, @config) end end end
Version data entries
21 entries across 21 versions & 1 rubygems