Class: OpenAPIParser::Schemas::Schema

Inherits:
Object
  • Object
show all
Includes:
Fakeit::Openapi::Schema
Defined in:
lib/fakeit/core_extensions/schema.rb

Constant Summary

Constants included from Fakeit::Openapi::Example

Fakeit::Openapi::Example::MAX_NUM, Fakeit::Openapi::Example::MIN_NUM, Fakeit::Openapi::Example::RANDOM_FORMAT_HANDLERS, Fakeit::Openapi::Example::STATIC_FORMAT_HANDLERS

Instance Method Summary collapse

Methods included from Fakeit::Openapi::Schema

#to_example

Methods included from Fakeit::Openapi::Example

#array_example, #boolean_example, #integer_example, #number_example, #object_example, #string_example

Instance Method Details

#old_typeObject



8
# File 'lib/fakeit/core_extensions/schema.rb', line 8

alias old_type type

#typeObject



10
11
12
# File 'lib/fakeit/core_extensions/schema.rb', line 10

def type
  old_type || inferred_type
end