Sha256: 7eb848baf696f71ee93b6d10c706c4ffa79780a2bbb9819cb01c019300daa995

Contents?: true

Size: 265 Bytes

Versions: 9

Compression:

Stored size: 265 Bytes

Contents

module Swagui
  class JsonSchemaParser

    # returns a hash of interlinked models
    # the first one is the root
    def self.parse(file, prefix = "")
      schema_json = JSON.load(File.open(file).read)
      JsonSchema.new(schema_json, prefix)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
swagui-0.5.4 lib/swagui/json_schema_parser.rb
swagui-0.5.3 lib/swagui/json_schema_parser.rb
swagui-0.5.2 lib/swagui/json_schema_parser.rb
swagui-0.5.1 lib/swagui/json_schema_parser.rb
swagui-0.4.1 lib/swagui/json_schema_parser.rb
swagui-0.4.0 lib/swagui/json_schema_parser.rb
swagui-0.3.0 lib/swagui/json_schema_parser.rb
swagui-0.2.1 lib/swagui/json_schema_parser.rb
swagui-0.2.0 lib/swagui/json_schema_parser.rb