class Swagui::JsonSchemaParser

Public Class Methods

parse(file, prefix = "") click to toggle source

returns a hash of interlinked models the first one is the root

# File lib/swagui/json_schema_parser.rb, line 6
def self.parse(file, prefix = "")
  schema_json = JSON.load(File.open(file).read)
  JsonSchema.new(schema_json, prefix)
end