Sha256: 09c24c6ac1d69f7d5ff3452adcbd0f540e51055497079e93dfcd2fedb6b35933

Contents?: true

Size: 695 Bytes

Versions: 25

Compression:

Stored size: 695 Bytes

Contents

require 'time'

require 'openapi_parser/version'
require 'openapi_parser/config'
require 'openapi_parser/errors'
require 'openapi_parser/concern'
require 'openapi_parser/schemas'
require 'openapi_parser/path_item_finder'
require 'openapi_parser/request_operation'
require 'openapi_parser/schema_validator'
require 'openapi_parser/parameter_validator'
require 'openapi_parser/reference_expander'

module OpenAPIParser
  class << self
    # @return [OpenAPIParser::Schemas::OpenAPI]
    def parse(schema, config = {})
      c = Config.new(config)
      root = Schemas::OpenAPI.new(schema, c)

      OpenAPIParser::ReferenceExpander.expand(root) if c.expand_reference

      root
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
openapi_parser-0.9.0 lib/openapi_parser.rb
openapi_parser-0.8.0 lib/openapi_parser.rb
openapi_parser-0.7.0 lib/openapi_parser.rb
openapi_parser-0.6.1 lib/openapi_parser.rb
openapi_parser-0.6.0 lib/openapi_parser.rb
openapi_parser-0.5.0 lib/openapi_parser.rb
openapi_parser-0.4.1 lib/openapi_parser.rb
openapi_parser-0.4.0 lib/openapi_parser.rb
openapi_parser-0.3.1 lib/openapi_parser.rb
openapi_parser-0.3.0 lib/openapi_parser.rb
openapi_parser-0.2.7 lib/openapi_parser.rb
openapi_parser-0.2.6 lib/openapi_parser.rb
openapi_parser-0.2.5 lib/openapi_parser.rb
openapi_parser-0.2.4 lib/openapi_parser.rb
openapi_parser-0.2.3 lib/openapi_parser.rb
openapi_parser-0.2.2 lib/openapi_parser.rb
openapi_parser-0.2.1 lib/openapi_parser.rb
openapi_parser-0.2.0 lib/openapi_parser.rb
openapi_parser-0.1.9 lib/openapi_parser.rb
openapi_parser-0.1.8 lib/openapi_parser.rb