Module: OpenApi2JsonSchema
- Defined in:
- lib/open_api_2_json_schema.rb,
lib/open_api_2_json_schema/version.rb,
lib/open_api_2_json_schema/converter.rb
Defined Under Namespace
Classes: Converter, Error, InvalidTypeError
Constant Summary
collapse
- VERSION =
"0.2.0"
Class Method Summary
collapse
Class Method Details
.convert(schema) ⇒ Object
23
24
25
|
# File 'lib/open_api_2_json_schema.rb', line 23
def convert(schema)
Converter.new.convert(schema)
end
|
.convert_from_file(path) ⇒ Object
19
20
21
|
# File 'lib/open_api_2_json_schema.rb', line 19
def convert_from_file(path)
convert(OasParser::Definition.resolve(path).raw)
end
|