Module: Fakeit::Openapi
- Defined in:
- lib/fakeit/openapi/loader.rb,
lib/fakeit/openapi/schema.rb,
lib/fakeit/openapi/operation.rb,
lib/fakeit/openapi/specification.rb,
lib/fakeit/openapi/example/array_example.rb,
lib/fakeit/openapi/example/number_example.rb,
lib/fakeit/openapi/example/object_example.rb,
lib/fakeit/openapi/example/string_example.rb,
lib/fakeit/openapi/example/boolean_example.rb,
lib/fakeit/openapi/example/integer_example.rb
Defined Under Namespace
Modules: Example, Schema Classes: Operation, Specification
Class Method Summary collapse
Class Method Details
.load(src) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/fakeit/openapi/loader.rb', line 4 def load(src) parse_method = parse_method(src) open(src, &:read) .then(&parse_method) .then(&OpenAPIParser.method(:parse)) end |