Class: OpenAPIParser::Schemas::Schema
- Defined in:
- lib/openapi_parser/schemas/schema.rb,
lib/openapi_parser/schemas/classes.rb
Instance Attribute Summary collapse
- #additional_properties ⇒ Boolean, ... readonly
- #all_of ⇒ Array<Schema, Reference>? readonly
- #any_of ⇒ Array<Schema, Reference>? readonly
- #default ⇒ Object? readonly
- #deprecated ⇒ Boolean? readonly
- #description ⇒ String? readonly
- #discriminator ⇒ Discriminator? readonly
-
#enum ⇒ Array?
readonly
Any type array.
- #example ⇒ Object? readonly
- #exclusiveMaximum ⇒ Boolean? readonly
- #exclusiveMinimum ⇒ Boolean? readonly
- #format ⇒ String? readonly
- #items ⇒ Schema? readonly
- #maximum ⇒ Float? readonly
- #maxItems ⇒ Integer? readonly
- #maxLength ⇒ Integer? readonly
- #maxProperties ⇒ Integer? readonly
- #minItems ⇒ Integer? readonly
- #minLength ⇒ Integer? readonly
- #minProperties ⇒ Integer? readonly
- #multipleOf ⇒ Float? readonly
- #nullable ⇒ Boolean? readonly
- #one_of ⇒ Array<Schema, Reference>? readonly
-
#pattern ⇒ String?
readonly
Regexp.
- #properties ⇒ Hash{String => Schema}? readonly
- #read_only ⇒ Boolean? readonly
-
#required ⇒ Array<String>?
readonly
At least one item included.
- #title ⇒ String? readonly
-
#type ⇒ String?
readonly
Multiple types doesn’t supported in OpenAPI3.
- #uniqueItems ⇒ Boolean? readonly
- #write_only ⇒ Boolean? readonly
Attributes inherited from Base
#object_reference, #parent, #raw_schema, #root
Method Summary
Methods inherited from Base
#after_init, #initialize, #inspect
Methods included from Expandable
Methods included from Findable
#find_object, #purge_object_cache
Methods included from Parser
#_openapi_all_child_objects, #_update_child_object, included, #load_data
Constructor Details
This class inherits a constructor from OpenAPIParser::Schemas::Base
Instance Attribute Details
#additional_properties ⇒ Boolean, ... (readonly)
110 |
# File 'lib/openapi_parser/schemas/schema.rb', line 110 openapi_attr_object :additional_properties, Schema, reference: true, allow_data_type: true, schema_key: :additionalProperties |
#all_of ⇒ Array<Schema, Reference>? (readonly)
86 |
# File 'lib/openapi_parser/schemas/schema.rb', line 86 openapi_attr_list_object :all_of, Schema, reference: true, schema_key: :allOf |
#any_of ⇒ Array<Schema, Reference>? (readonly)
94 |
# File 'lib/openapi_parser/schemas/schema.rb', line 94 openapi_attr_list_object :any_of, Schema, reference: true, schema_key: :anyOf |
#deprecated ⇒ Boolean? (readonly)
|
# File 'lib/openapi_parser/schemas/schema.rb', line 38
|
#description ⇒ String? (readonly)
|
# File 'lib/openapi_parser/schemas/schema.rb', line 7
|
#discriminator ⇒ Discriminator? (readonly)
106 |
# File 'lib/openapi_parser/schemas/schema.rb', line 106 openapi_attr_object :discriminator, Discriminator |
#enum ⇒ Array? (readonly)
Returns any type array.
|
# File 'lib/openapi_parser/schemas/schema.rb', line 52
|
#example ⇒ Object? (readonly)
61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/openapi_parser/schemas/schema.rb', line 61 openapi_attr_values :title, :multipleOf, :maximum, :exclusiveMaximum, :minimum, :exclusiveMinimum, :maxLength, :minLength, :pattern, :maxItems, :minItems, :uniqueItems, :maxProperties, :minProperties, :required, :enum, :description, :format, :default, :type, :nullable, :example, :deprecated |
#exclusiveMaximum ⇒ Boolean? (readonly)
|
# File 'lib/openapi_parser/schemas/schema.rb', line 38
|
#exclusiveMinimum ⇒ Boolean? (readonly)
|
# File 'lib/openapi_parser/schemas/schema.rb', line 38
|
#format ⇒ String? (readonly)
|
# File 'lib/openapi_parser/schemas/schema.rb', line 7
|
#items ⇒ Schema? (readonly)
98 |
# File 'lib/openapi_parser/schemas/schema.rb', line 98 openapi_attr_object :items, Schema, reference: true |
#maximum ⇒ Float? (readonly)
|
# File 'lib/openapi_parser/schemas/schema.rb', line 20
|
#maxItems ⇒ Integer? (readonly)
|
# File 'lib/openapi_parser/schemas/schema.rb', line 25
|
#maxLength ⇒ Integer? (readonly)
|
# File 'lib/openapi_parser/schemas/schema.rb', line 25
|
#maxProperties ⇒ Integer? (readonly)
|
# File 'lib/openapi_parser/schemas/schema.rb', line 25
|
#minItems ⇒ Integer? (readonly)
|
# File 'lib/openapi_parser/schemas/schema.rb', line 25
|
#minLength ⇒ Integer? (readonly)
|
# File 'lib/openapi_parser/schemas/schema.rb', line 25
|
#minProperties ⇒ Integer? (readonly)
|
# File 'lib/openapi_parser/schemas/schema.rb', line 25
|
#multipleOf ⇒ Float? (readonly)
|
# File 'lib/openapi_parser/schemas/schema.rb', line 20
|
#nullable ⇒ Boolean? (readonly)
|
# File 'lib/openapi_parser/schemas/schema.rb', line 38
|
#one_of ⇒ Array<Schema, Reference>? (readonly)
90 |
# File 'lib/openapi_parser/schemas/schema.rb', line 90 openapi_attr_list_object :one_of, Schema, reference: true, schema_key: :oneOf |
#pattern ⇒ String? (readonly)
Returns regexp.
|
# File 'lib/openapi_parser/schemas/schema.rb', line 7
|
#properties ⇒ Hash{String => Schema}? (readonly)
102 |
# File 'lib/openapi_parser/schemas/schema.rb', line 102 openapi_attr_hash_object :properties, Schema, reference: true |
#read_only ⇒ Boolean? (readonly)
78 |
# File 'lib/openapi_parser/schemas/schema.rb', line 78 openapi_attr_value :read_only, schema_key: :readOnly |
#required ⇒ Array<String>? (readonly)
Returns at least one item included.
|
# File 'lib/openapi_parser/schemas/schema.rb', line 49
|
#title ⇒ String? (readonly)
|
# File 'lib/openapi_parser/schemas/schema.rb', line 7
|
#type ⇒ String? (readonly)
Returns multiple types doesn’t supported in OpenAPI3.
|
# File 'lib/openapi_parser/schemas/schema.rb', line 7
|
#uniqueItems ⇒ Boolean? (readonly)
|
# File 'lib/openapi_parser/schemas/schema.rb', line 38
|
#write_only ⇒ Boolean? (readonly)
82 |
# File 'lib/openapi_parser/schemas/schema.rb', line 82 openapi_attr_value :write_only, schema_key: :writeOnly |