Class: Openapi3Parser::Nodes::Schema
Overview
rubocop:disable ClassLength
Instance Attribute Summary
#node_context, #node_data
Instance Method Summary
collapse
#[], #each, #extension, #initialize
Instance Method Details
#additional_properties? ⇒ Boolean
128
129
130
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 128
def additional_properties?
node_data["additionalProperties"] != false
end
|
#additional_properties_schema ⇒ Schema?
133
134
135
136
137
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 133
def additional_properties_schema
properties = node_data["additionalProperties"]
return if [true, false].include?(properties)
properties
end
|
98
99
100
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 98
def all_of
node_data["allOf"]
end
|
108
109
110
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 108
def any_of
node_data["anyOf"]
end
|
#default ⇒ Any
150
151
152
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 150
def default
node_data["default"]
end
|
#deprecated? ⇒ Boolean
190
191
192
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 190
def deprecated?
node_data["deprecated"]
end
|
#description ⇒ String?
140
141
142
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 140
def description
node_data["description"]
end
|
160
161
162
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 160
def disciminator
node_data["discriminator"]
end
|
88
89
90
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 88
def enum
node_data["enum"]
end
|
#example ⇒ Any
185
186
187
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 185
def example
node_data["example"]
end
|
#exclusive_maximum? ⇒ Boolean
28
29
30
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 28
def exclusive_maximum?
node_data["exclusiveMaximum"]
end
|
#exclusive_minimum? ⇒ Boolean
38
39
40
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 38
def exclusive_minimum?
node_data["exclusiveMinimum"]
end
|
180
181
182
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 180
def external_docs
node_data["externalDocs"]
end
|
145
146
147
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 145
def format
node_data["format"]
end
|
118
119
120
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 118
def items
node_data["items"]
end
|
#max_items ⇒ Integer?
58
59
60
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 58
def max_items
node_data["maxItems"]
end
|
#max_length ⇒ Integer?
43
44
45
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 43
def max_length
node_data["maxLength"]
end
|
#max_properties ⇒ Integer?
73
74
75
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 73
def max_properties
node_data["maxProperties"]
end
|
#maximum ⇒ Integer?
23
24
25
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 23
def maximum
node_data["maximum"]
end
|
#min_items ⇒ Integer
63
64
65
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 63
def min_items
node_data["minItems"]
end
|
#min_length ⇒ Integer
48
49
50
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 48
def min_length
node_data["minLength"]
end
|
#min_properties ⇒ Integer
78
79
80
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 78
def min_properties
node_data["minProperties"]
end
|
#minimum ⇒ Integer?
33
34
35
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 33
def minimum
node_data["minimum"]
end
|
#multiple_of ⇒ Numeric?
18
19
20
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 18
def multiple_of
node_data["multipleOf"]
end
|
113
114
115
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 113
def not
node_data["not"]
end
|
#nullable? ⇒ Boolean
155
156
157
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 155
def nullable?
node_data["nullable"]
end
|
103
104
105
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 103
def one_of
node_data["oneOf"]
end
|
#pattern ⇒ String?
53
54
55
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 53
def pattern
node_data["pattern"]
end
|
#properties ⇒ Map<String, Schema>
123
124
125
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 123
def properties
node_data["properties"]
end
|
#read_only? ⇒ Boolean
165
166
167
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 165
def read_only?
node_data["readOnly"]
end
|
83
84
85
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 83
def required
node_data["required"]
end
|
#title ⇒ String?
13
14
15
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 13
def title
node_data["title"]
end
|
#type ⇒ String?
93
94
95
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 93
def type
node_data["type"]
end
|
#unique_items? ⇒ Boolean
68
69
70
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 68
def unique_items?
node_data["uniqueItems"]
end
|
#write_only? ⇒ Boolean
170
171
172
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 170
def write_only?
node_data["writeOnly"]
end
|
#xml ⇒ Xml?
175
176
177
|
# File 'lib/openapi3_parser/nodes/schema.rb', line 175
def xml
node_data["xml"]
end
|