parking_ticket 1.0.46 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -0
- data/.vscode/settings.json +3 -0
- data/Gemfile +0 -15
- data/Gemfile.lock +72 -4
- data/Rakefile +2 -2
- data/bin/console +3 -3
- data/bin/tapioca +29 -0
- data/lib/clients/models/payment_method.rb +15 -0
- data/lib/clients/models/quote.rb +16 -0
- data/lib/clients/models/rate_option.rb +19 -0
- data/lib/clients/models/structuraly_comparable.rb +14 -0
- data/lib/clients/models/ticket.rb +19 -0
- data/lib/clients/models/vehicle.rb +17 -0
- data/lib/clients/pay_by_phone/adapter.rb +107 -53
- data/lib/clients/pay_by_phone/client.rb +101 -38
- data/lib/parking_ticket/configuration.rb +3 -0
- data/lib/parking_ticket/version.rb +2 -1
- data/lib/parking_ticket.rb +79 -54
- data/sorbet/config +4 -0
- data/sorbet/rbi/annotations/faraday.rbi +17 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/annotations/webmock.rbi +9 -0
- data/sorbet/rbi/gems/addressable@2.8.1.rbi +2000 -0
- data/sorbet/rbi/gems/amazing_print@1.4.0.rbi +872 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
- data/sorbet/rbi/gems/crack@0.4.5.rbi +144 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1079 -0
- data/sorbet/rbi/gems/faraday-net_http@3.0.2.rbi +146 -0
- data/sorbet/rbi/gems/faraday@2.7.2.rbi +2518 -0
- data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +350 -0
- data/sorbet/rbi/gems/json@2.6.3.rbi +1541 -0
- data/sorbet/rbi/gems/json_matchers@0.11.1.rbi +133 -0
- data/sorbet/rbi/gems/json_schema@0.21.0.rbi +1165 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +161 -0
- data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
- data/sorbet/rbi/gems/parser@3.2.2.0.rbi +7207 -0
- data/sorbet/rbi/gems/public_suffix@5.0.1.rbi +940 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
- data/sorbet/rbi/gems/rake@13.0.6.rbi +2881 -0
- data/sorbet/rbi/gems/rbi@0.0.16.rbi +3008 -0
- data/sorbet/rbi/gems/regexp_parser@2.7.0.rbi +3600 -0
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +4823 -0
- data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +10826 -0
- data/sorbet/rbi/gems/rspec-expectations@3.12.1.rbi +8118 -0
- data/sorbet/rbi/gems/rspec-mocks@3.12.1.rbi +5300 -0
- data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +1615 -0
- data/sorbet/rbi/gems/rspec@3.12.0.rbi +82 -0
- data/sorbet/rbi/gems/rubocop-ast@1.28.0.rbi +6985 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.7.0.rbi +1043 -0
- data/sorbet/rbi/gems/rubocop@1.48.1.rbi +54934 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.2.1.rbi +2503 -0
- data/sorbet/rbi/gems/tapioca@0.11.4.rbi +3212 -0
- data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
- data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +65 -0
- data/sorbet/rbi/gems/unparser@0.6.7.rbi +4515 -0
- data/sorbet/rbi/gems/vcr@6.1.0.rbi +3023 -0
- data/sorbet/rbi/gems/webmock@3.18.1.rbi +1728 -0
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +2584 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +441 -0
- data/sorbet/rbi/gems/yard@0.9.28.rbi +17802 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +241 -4
- data/lib/clients/adapter.rb +0 -75
@@ -0,0 +1,1165 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `json_schema` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem json_schema`.
|
6
|
+
|
7
|
+
# source://json_schema//lib/json_pointer/evaluator.rb#1
|
8
|
+
module JsonPointer
|
9
|
+
class << self
|
10
|
+
# source://json_schema//lib/json_pointer.rb#4
|
11
|
+
def evaluate(data, path); end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
# Evaluates a JSON pointer within a JSON document.
|
16
|
+
#
|
17
|
+
# Note that this class is designed to evaluate references across a plain JSON
|
18
|
+
# data object _or_ an instance of `JsonSchema::Schema`, so the constructor's
|
19
|
+
# `data` argument can be of either type.
|
20
|
+
#
|
21
|
+
# source://json_schema//lib/json_pointer/evaluator.rb#7
|
22
|
+
class JsonPointer::Evaluator
|
23
|
+
# @return [Evaluator] a new instance of Evaluator
|
24
|
+
#
|
25
|
+
# source://json_schema//lib/json_pointer/evaluator.rb#8
|
26
|
+
def initialize(data); end
|
27
|
+
|
28
|
+
# source://json_schema//lib/json_pointer/evaluator.rb#12
|
29
|
+
def evaluate(original_path); end
|
30
|
+
|
31
|
+
private
|
32
|
+
|
33
|
+
# source://json_schema//lib/json_pointer/evaluator.rb#33
|
34
|
+
def evaluate_segment(data, path_parts); end
|
35
|
+
|
36
|
+
# custom split method to account for blank segments
|
37
|
+
#
|
38
|
+
# source://json_schema//lib/json_pointer/evaluator.rb#53
|
39
|
+
def split(path); end
|
40
|
+
|
41
|
+
# source://json_schema//lib/json_pointer/evaluator.rb#71
|
42
|
+
def transform_key(key); end
|
43
|
+
end
|
44
|
+
|
45
|
+
# source://json_schema//lib/json_reference.rb#4
|
46
|
+
module JsonReference
|
47
|
+
class << self
|
48
|
+
# source://json_schema//lib/json_reference.rb#5
|
49
|
+
def reference(ref); end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
# source://json_schema//lib/json_reference.rb#9
|
54
|
+
class JsonReference::Reference
|
55
|
+
include ::Comparable
|
56
|
+
|
57
|
+
# @return [Reference] a new instance of Reference
|
58
|
+
#
|
59
|
+
# source://json_schema//lib/json_reference.rb#15
|
60
|
+
def initialize(ref); end
|
61
|
+
|
62
|
+
# source://json_schema//lib/json_reference.rb#36
|
63
|
+
def <=>(other); end
|
64
|
+
|
65
|
+
# source://json_schema//lib/json_reference.rb#40
|
66
|
+
def inspect; end
|
67
|
+
|
68
|
+
# Returns the value of attribute pointer.
|
69
|
+
#
|
70
|
+
# source://json_schema//lib/json_reference.rb#12
|
71
|
+
def pointer; end
|
72
|
+
|
73
|
+
# Sets the attribute pointer
|
74
|
+
#
|
75
|
+
# @param value the value to set the attribute pointer to.
|
76
|
+
#
|
77
|
+
# source://json_schema//lib/json_reference.rb#12
|
78
|
+
def pointer=(_arg0); end
|
79
|
+
|
80
|
+
# Given the document addressed by #uri, resolves the JSON Pointer part of
|
81
|
+
# the reference.
|
82
|
+
#
|
83
|
+
# source://json_schema//lib/json_reference.rb#46
|
84
|
+
def resolve_pointer(data); end
|
85
|
+
|
86
|
+
# source://json_schema//lib/json_reference.rb#50
|
87
|
+
def to_s; end
|
88
|
+
|
89
|
+
# Returns the value of attribute uri.
|
90
|
+
#
|
91
|
+
# source://json_schema//lib/json_reference.rb#13
|
92
|
+
def uri; end
|
93
|
+
|
94
|
+
# Sets the attribute uri
|
95
|
+
#
|
96
|
+
# @param value the value to set the attribute uri to.
|
97
|
+
#
|
98
|
+
# source://json_schema//lib/json_reference.rb#13
|
99
|
+
def uri=(_arg0); end
|
100
|
+
end
|
101
|
+
|
102
|
+
# source://json_schema//lib/json_schema/attributes.rb#1
|
103
|
+
module JsonSchema
|
104
|
+
class << self
|
105
|
+
# source://json_schema//lib/json_schema.rb#15
|
106
|
+
def configuration; end
|
107
|
+
|
108
|
+
# @yield [configuration]
|
109
|
+
#
|
110
|
+
# source://json_schema//lib/json_schema.rb#11
|
111
|
+
def configure; end
|
112
|
+
|
113
|
+
# source://json_schema//lib/json_schema.rb#19
|
114
|
+
def parse(data); end
|
115
|
+
|
116
|
+
# source://json_schema//lib/json_schema.rb#28
|
117
|
+
def parse!(data); end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
# source://json_schema//lib/json_schema/error.rb#5
|
122
|
+
class JsonSchema::AggregateError < ::JsonSchema::Error
|
123
|
+
# @return [AggregateError] a new instance of AggregateError
|
124
|
+
#
|
125
|
+
# source://json_schema//lib/json_schema/error.rb#8
|
126
|
+
def initialize(errors); end
|
127
|
+
|
128
|
+
# Returns the value of attribute errors.
|
129
|
+
#
|
130
|
+
# source://json_schema//lib/json_schema/error.rb#6
|
131
|
+
def errors; end
|
132
|
+
|
133
|
+
# Sets the attribute errors
|
134
|
+
#
|
135
|
+
# @param value the value to set the attribute errors to.
|
136
|
+
#
|
137
|
+
# source://json_schema//lib/json_schema/error.rb#6
|
138
|
+
def errors=(_arg0); end
|
139
|
+
|
140
|
+
# source://json_schema//lib/json_schema/error.rb#12
|
141
|
+
def to_s; end
|
142
|
+
end
|
143
|
+
|
144
|
+
# Attributes mixes in some useful attribute-related methods for use in
|
145
|
+
# defining schema classes in a spirit similar to Ruby's attr_accessor and
|
146
|
+
# friends.
|
147
|
+
#
|
148
|
+
# source://json_schema//lib/json_schema/attributes.rb#5
|
149
|
+
module JsonSchema::Attributes
|
150
|
+
mixes_in_class_methods ::JsonSchema::Attributes::ClassMethods
|
151
|
+
|
152
|
+
# Allows the values of schema attributes to be accessed with a symbol or a
|
153
|
+
# string. So for example, the value of `schema.additional_items` could be
|
154
|
+
# procured with `schema[:additionalItems]`. This only works for attributes
|
155
|
+
# that are part of the JSON schema specification; other methods on the
|
156
|
+
# class are not available (e.g. `expanded`.)
|
157
|
+
#
|
158
|
+
# This is implemented so that `JsonPointer::Evaluator` can evaluate a
|
159
|
+
# reference on an sintance of this class (as well as plain JSON data).
|
160
|
+
#
|
161
|
+
# source://json_schema//lib/json_schema/attributes.rb#96
|
162
|
+
def [](name); end
|
163
|
+
|
164
|
+
# source://json_schema//lib/json_schema/attributes.rb#105
|
165
|
+
def copy_from(schema); end
|
166
|
+
|
167
|
+
# source://json_schema//lib/json_schema/attributes.rb#111
|
168
|
+
def initialize_attrs; end
|
169
|
+
|
170
|
+
class << self
|
171
|
+
# @private
|
172
|
+
#
|
173
|
+
# source://json_schema//lib/json_schema/attributes.rb#83
|
174
|
+
def included(klass); end
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
# Provides class-level methods for the Attributes module.
|
179
|
+
#
|
180
|
+
# source://json_schema//lib/json_schema/attributes.rb#7
|
181
|
+
module JsonSchema::Attributes::ClassMethods
|
182
|
+
# identical to attr_accessible, but allows us to copy in values from a
|
183
|
+
# target schema to help preserve our hierarchy during reference expansion
|
184
|
+
#
|
185
|
+
# source://json_schema//lib/json_schema/attributes.rb#25
|
186
|
+
def attr_copyable(attr, options = T.unsafe(nil)); end
|
187
|
+
|
188
|
+
# source://json_schema//lib/json_schema/attributes.rb#59
|
189
|
+
def attr_schema(attr, options = T.unsafe(nil)); end
|
190
|
+
|
191
|
+
# Attributes that should be copied between classes when invoking
|
192
|
+
# Attributes#copy_from.
|
193
|
+
#
|
194
|
+
# Hash contains instance variable names mapped to a default value for the
|
195
|
+
# field.
|
196
|
+
#
|
197
|
+
# source://json_schema//lib/json_schema/attributes.rb#13
|
198
|
+
def copyable_attrs; end
|
199
|
+
|
200
|
+
# Directive indicating that attributes should be inherited from a parent
|
201
|
+
# class.
|
202
|
+
#
|
203
|
+
# Must appear as first statement in class that mixes in (or whose parent
|
204
|
+
# mixes in) the Attributes module.
|
205
|
+
#
|
206
|
+
# source://json_schema//lib/json_schema/attributes.rb#69
|
207
|
+
def inherit_attrs; end
|
208
|
+
|
209
|
+
# Initializes some class instance variables required to make other
|
210
|
+
# methods in the Attributes module work. Run automatically when the
|
211
|
+
# module is mixed into another class.
|
212
|
+
#
|
213
|
+
# source://json_schema//lib/json_schema/attributes.rb#77
|
214
|
+
def initialize_attrs; end
|
215
|
+
|
216
|
+
# Attributes that are part of the JSON schema and hyper-schema
|
217
|
+
# specifications. These are allowed to be accessed with the [] operator.
|
218
|
+
#
|
219
|
+
# Hash contains the access key mapped to the name of the method that should
|
220
|
+
# be invoked to retrieve a value. For example, `type` maps to `type` and
|
221
|
+
# `additionalItems` maps to `additional_items`.
|
222
|
+
#
|
223
|
+
# source://json_schema//lib/json_schema/attributes.rb#21
|
224
|
+
def schema_attrs; end
|
225
|
+
end
|
226
|
+
|
227
|
+
# source://json_schema//lib/json_schema/configuration.rb#2
|
228
|
+
class JsonSchema::Configuration
|
229
|
+
# @return [Configuration] a new instance of Configuration
|
230
|
+
#
|
231
|
+
# source://json_schema//lib/json_schema/configuration.rb#24
|
232
|
+
def initialize; end
|
233
|
+
|
234
|
+
# Returns the value of attribute all_of_sub_errors.
|
235
|
+
#
|
236
|
+
# source://json_schema//lib/json_schema/configuration.rb#3
|
237
|
+
def all_of_sub_errors; end
|
238
|
+
|
239
|
+
# Sets the attribute all_of_sub_errors
|
240
|
+
#
|
241
|
+
# @param value the value to set the attribute all_of_sub_errors to.
|
242
|
+
#
|
243
|
+
# source://json_schema//lib/json_schema/configuration.rb#3
|
244
|
+
def all_of_sub_errors=(_arg0); end
|
245
|
+
|
246
|
+
# Returns the value of attribute custom_formats.
|
247
|
+
#
|
248
|
+
# source://json_schema//lib/json_schema/configuration.rb#4
|
249
|
+
def custom_formats; end
|
250
|
+
|
251
|
+
# source://json_schema//lib/json_schema/configuration.rb#11
|
252
|
+
def register_format(name, validator_proc); end
|
253
|
+
|
254
|
+
# Used for testing.
|
255
|
+
#
|
256
|
+
# source://json_schema//lib/json_schema/configuration.rb#16
|
257
|
+
def reset!; end
|
258
|
+
|
259
|
+
# Returns the value of attribute validate_regex_with.
|
260
|
+
#
|
261
|
+
# source://json_schema//lib/json_schema/configuration.rb#5
|
262
|
+
def validate_regex_with; end
|
263
|
+
|
264
|
+
# source://json_schema//lib/json_schema/configuration.rb#7
|
265
|
+
def validate_regex_with=(validator); end
|
266
|
+
end
|
267
|
+
|
268
|
+
# The document store helps resolve URI-based JSON pointers by storing IDs
|
269
|
+
# that we've seen in the schema.
|
270
|
+
#
|
271
|
+
# Each URI tuple also contains a pointer map that helps speed up expansions
|
272
|
+
# that have already happened and handles cyclic dependencies. Store a
|
273
|
+
# reference to the top-level schema before doing anything else.
|
274
|
+
#
|
275
|
+
# source://json_schema//lib/json_schema/document_store.rb#8
|
276
|
+
class JsonSchema::DocumentStore
|
277
|
+
include ::Enumerable
|
278
|
+
|
279
|
+
# @return [DocumentStore] a new instance of DocumentStore
|
280
|
+
#
|
281
|
+
# source://json_schema//lib/json_schema/document_store.rb#11
|
282
|
+
def initialize; end
|
283
|
+
|
284
|
+
# @raise [ArgumentError]
|
285
|
+
#
|
286
|
+
# source://json_schema//lib/json_schema/document_store.rb#15
|
287
|
+
def add_schema(schema); end
|
288
|
+
|
289
|
+
# source://json_schema//lib/json_schema/document_store.rb#21
|
290
|
+
def each; end
|
291
|
+
|
292
|
+
# source://json_schema//lib/json_schema/document_store.rb#25
|
293
|
+
def lookup_schema(uri); end
|
294
|
+
end
|
295
|
+
|
296
|
+
# source://json_schema//lib/json_schema/error.rb#2
|
297
|
+
class JsonSchema::Error < ::RuntimeError; end
|
298
|
+
|
299
|
+
# source://json_schema//lib/json_schema/error.rb#61
|
300
|
+
module JsonSchema::ErrorFormatter
|
301
|
+
private
|
302
|
+
|
303
|
+
# source://json_schema//lib/json_schema/error.rb#62
|
304
|
+
def to_list(list); end
|
305
|
+
|
306
|
+
class << self
|
307
|
+
# source://json_schema//lib/json_schema/error.rb#62
|
308
|
+
def to_list(list); end
|
309
|
+
end
|
310
|
+
end
|
311
|
+
|
312
|
+
# source://json_schema//lib/json_schema/parser.rb#5
|
313
|
+
class JsonSchema::Parser
|
314
|
+
# Returns the value of attribute errors.
|
315
|
+
#
|
316
|
+
# source://json_schema//lib/json_schema/parser.rb#24
|
317
|
+
def errors; end
|
318
|
+
|
319
|
+
# Sets the attribute errors
|
320
|
+
#
|
321
|
+
# @param value the value to set the attribute errors to.
|
322
|
+
#
|
323
|
+
# source://json_schema//lib/json_schema/parser.rb#24
|
324
|
+
def errors=(_arg0); end
|
325
|
+
|
326
|
+
# Basic parsing of a schema. May return a malformed schema! (Use `#parse!`
|
327
|
+
# to raise errors instead).
|
328
|
+
#
|
329
|
+
# source://json_schema//lib/json_schema/parser.rb#28
|
330
|
+
def parse(data, parent = T.unsafe(nil)); end
|
331
|
+
|
332
|
+
# source://json_schema//lib/json_schema/parser.rb#41
|
333
|
+
def parse!(data, parent = T.unsafe(nil)); end
|
334
|
+
|
335
|
+
private
|
336
|
+
|
337
|
+
# source://json_schema//lib/json_schema/parser.rb#51
|
338
|
+
def build_uri(id, parent_uri); end
|
339
|
+
|
340
|
+
# source://json_schema//lib/json_schema/parser.rb#77
|
341
|
+
def parse_additional_items(schema); end
|
342
|
+
|
343
|
+
# source://json_schema//lib/json_schema/parser.rb#92
|
344
|
+
def parse_additional_properties(schema); end
|
345
|
+
|
346
|
+
# source://json_schema//lib/json_schema/parser.rb#107
|
347
|
+
def parse_all_of(schema); end
|
348
|
+
|
349
|
+
# source://json_schema//lib/json_schema/parser.rb#114
|
350
|
+
def parse_any_of(schema); end
|
351
|
+
|
352
|
+
# source://json_schema//lib/json_schema/parser.rb#128
|
353
|
+
def parse_data(data, parent, fragment); end
|
354
|
+
|
355
|
+
# source://json_schema//lib/json_schema/parser.rb#146
|
356
|
+
def parse_definitions(schema); end
|
357
|
+
|
358
|
+
# source://json_schema//lib/json_schema/parser.rb#157
|
359
|
+
def parse_dependencies(schema); end
|
360
|
+
|
361
|
+
# source://json_schema//lib/json_schema/parser.rb#174
|
362
|
+
def parse_items(schema); end
|
363
|
+
|
364
|
+
# source://json_schema//lib/json_schema/parser.rb#187
|
365
|
+
def parse_links(schema); end
|
366
|
+
|
367
|
+
# source://json_schema//lib/json_schema/parser.rb#223
|
368
|
+
def parse_media(schema); end
|
369
|
+
|
370
|
+
# source://json_schema//lib/json_schema/parser.rb#231
|
371
|
+
def parse_not(schema); end
|
372
|
+
|
373
|
+
# source://json_schema//lib/json_schema/parser.rb#121
|
374
|
+
def parse_one_of(schema); end
|
375
|
+
|
376
|
+
# source://json_schema//lib/json_schema/parser.rb#237
|
377
|
+
def parse_pattern_properties(schema); end
|
378
|
+
|
379
|
+
# source://json_schema//lib/json_schema/parser.rb#259
|
380
|
+
def parse_properties(schema); end
|
381
|
+
|
382
|
+
# source://json_schema//lib/json_schema/parser.rb#248
|
383
|
+
def parse_regex(schema, regex); end
|
384
|
+
|
385
|
+
# source://json_schema//lib/json_schema/parser.rb#270
|
386
|
+
def parse_schema(data, parent, fragment); end
|
387
|
+
|
388
|
+
# source://json_schema//lib/json_schema/parser.rb#377
|
389
|
+
def validate_format(schema, format); end
|
390
|
+
|
391
|
+
# source://json_schema//lib/json_schema/parser.rb#355
|
392
|
+
def validate_known_type!(schema); end
|
393
|
+
|
394
|
+
# source://json_schema//lib/json_schema/parser.rb#364
|
395
|
+
def validate_type(schema, types, field); end
|
396
|
+
end
|
397
|
+
|
398
|
+
# source://json_schema//lib/json_schema/parser.rb#6
|
399
|
+
JsonSchema::Parser::ALLOWED_TYPES = T.let(T.unsafe(nil), Array)
|
400
|
+
|
401
|
+
# source://json_schema//lib/json_schema/parser.rb#7
|
402
|
+
JsonSchema::Parser::BOOLEAN = T.let(T.unsafe(nil), Array)
|
403
|
+
|
404
|
+
# Reuse these frozen objects to avoid allocations
|
405
|
+
#
|
406
|
+
# source://json_schema//lib/json_schema/parser.rb#21
|
407
|
+
JsonSchema::Parser::EMPTY_ARRAY = T.let(T.unsafe(nil), Array)
|
408
|
+
|
409
|
+
# source://json_schema//lib/json_schema/parser.rb#22
|
410
|
+
JsonSchema::Parser::EMPTY_HASH = T.let(T.unsafe(nil), Hash)
|
411
|
+
|
412
|
+
# source://json_schema//lib/json_schema/parser.rb#8
|
413
|
+
JsonSchema::Parser::FORMATS = T.let(T.unsafe(nil), Array)
|
414
|
+
|
415
|
+
# source://json_schema//lib/json_schema/parser.rb#9
|
416
|
+
JsonSchema::Parser::FRIENDLY_TYPES = T.let(T.unsafe(nil), Hash)
|
417
|
+
|
418
|
+
# source://json_schema//lib/json_schema/reference_expander.rb#4
|
419
|
+
class JsonSchema::ReferenceExpander
|
420
|
+
# Returns the value of attribute errors.
|
421
|
+
#
|
422
|
+
# source://json_schema//lib/json_schema/reference_expander.rb#5
|
423
|
+
def errors; end
|
424
|
+
|
425
|
+
# Sets the attribute errors
|
426
|
+
#
|
427
|
+
# @param value the value to set the attribute errors to.
|
428
|
+
#
|
429
|
+
# source://json_schema//lib/json_schema/reference_expander.rb#5
|
430
|
+
def errors=(_arg0); end
|
431
|
+
|
432
|
+
# source://json_schema//lib/json_schema/reference_expander.rb#8
|
433
|
+
def expand(schema, options = T.unsafe(nil)); end
|
434
|
+
|
435
|
+
# source://json_schema//lib/json_schema/reference_expander.rb#41
|
436
|
+
def expand!(schema, options = T.unsafe(nil)); end
|
437
|
+
|
438
|
+
# Returns the value of attribute store.
|
439
|
+
#
|
440
|
+
# source://json_schema//lib/json_schema/reference_expander.rb#6
|
441
|
+
def store; end
|
442
|
+
|
443
|
+
# Sets the attribute store
|
444
|
+
#
|
445
|
+
# @param value the value to set the attribute store to.
|
446
|
+
#
|
447
|
+
# source://json_schema//lib/json_schema/reference_expander.rb#6
|
448
|
+
def store=(_arg0); end
|
449
|
+
|
450
|
+
private
|
451
|
+
|
452
|
+
# source://json_schema//lib/json_schema/reference_expander.rb#50
|
453
|
+
def add_reference(schema); end
|
454
|
+
|
455
|
+
# source://json_schema//lib/json_schema/reference_expander.rb#68
|
456
|
+
def build_schema_paths(uri, schema); end
|
457
|
+
|
458
|
+
# source://json_schema//lib/json_schema/reference_expander.rb#87
|
459
|
+
def dereference(ref_schema, ref_stack, parent_ref: T.unsafe(nil)); end
|
460
|
+
|
461
|
+
# source://json_schema//lib/json_schema/reference_expander.rb#188
|
462
|
+
def lookup_pointer(uri, pointer); end
|
463
|
+
|
464
|
+
# source://json_schema//lib/json_schema/reference_expander.rb#193
|
465
|
+
def lookup_reference(uri); end
|
466
|
+
|
467
|
+
# source://json_schema//lib/json_schema/reference_expander.rb#201
|
468
|
+
def resolve_pointer(ref_schema, resolved_schema); end
|
469
|
+
|
470
|
+
# source://json_schema//lib/json_schema/reference_expander.rb#236
|
471
|
+
def resolve_reference(ref_schema); end
|
472
|
+
|
473
|
+
# source://json_schema//lib/json_schema/reference_expander.rb#274
|
474
|
+
def resolve_uri(ref_schema, uri); end
|
475
|
+
|
476
|
+
# source://json_schema//lib/json_schema/reference_expander.rb#284
|
477
|
+
def schema_children(schema); end
|
478
|
+
|
479
|
+
# source://json_schema//lib/json_schema/reference_expander.rb#341
|
480
|
+
def traverse_schema(schema); end
|
481
|
+
|
482
|
+
# source://json_schema//lib/json_schema/reference_expander.rb#326
|
483
|
+
def unresolved_refs(schema); end
|
484
|
+
end
|
485
|
+
|
486
|
+
# source://json_schema//lib/json_schema/schema.rb#4
|
487
|
+
class JsonSchema::Schema
|
488
|
+
include ::JsonSchema::Attributes
|
489
|
+
extend ::JsonSchema::Attributes::ClassMethods
|
490
|
+
|
491
|
+
# @return [Schema] a new instance of Schema
|
492
|
+
#
|
493
|
+
# source://json_schema//lib/json_schema/schema.rb#17
|
494
|
+
def initialize; end
|
495
|
+
|
496
|
+
# source://json_schema//lib/json_schema/attributes.rb#40
|
497
|
+
def additional_items; end
|
498
|
+
|
499
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
500
|
+
def additional_items=(_arg0); end
|
501
|
+
|
502
|
+
# allow booleans to be access with question mark
|
503
|
+
#
|
504
|
+
# source://json_schema//lib/json_schema/attributes.rb#40
|
505
|
+
def additional_items?; end
|
506
|
+
|
507
|
+
# source://json_schema//lib/json_schema/attributes.rb#40
|
508
|
+
def additional_properties; end
|
509
|
+
|
510
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
511
|
+
def additional_properties=(_arg0); end
|
512
|
+
|
513
|
+
# source://json_schema//lib/json_schema/attributes.rb#40
|
514
|
+
def all_of; end
|
515
|
+
|
516
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
517
|
+
def all_of=(_arg0); end
|
518
|
+
|
519
|
+
# source://json_schema//lib/json_schema/attributes.rb#40
|
520
|
+
def any_of; end
|
521
|
+
|
522
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
523
|
+
def any_of=(_arg0); end
|
524
|
+
|
525
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
526
|
+
def clones; end
|
527
|
+
|
528
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
529
|
+
def clones=(_arg0); end
|
530
|
+
|
531
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
532
|
+
def data; end
|
533
|
+
|
534
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
535
|
+
def data=(_arg0); end
|
536
|
+
|
537
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
538
|
+
def default; end
|
539
|
+
|
540
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
541
|
+
def default=(_arg0); end
|
542
|
+
|
543
|
+
# source://json_schema//lib/json_schema/attributes.rb#40
|
544
|
+
def definitions; end
|
545
|
+
|
546
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
547
|
+
def definitions=(_arg0); end
|
548
|
+
|
549
|
+
# source://json_schema//lib/json_schema/attributes.rb#40
|
550
|
+
def dependencies; end
|
551
|
+
|
552
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
553
|
+
def dependencies=(_arg0); end
|
554
|
+
|
555
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
556
|
+
def description; end
|
557
|
+
|
558
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
559
|
+
def description=(_arg0); end
|
560
|
+
|
561
|
+
# source://json_schema//lib/json_schema/attributes.rb#40
|
562
|
+
def enc_type; end
|
563
|
+
|
564
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
565
|
+
def enc_type=(_arg0); end
|
566
|
+
|
567
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
568
|
+
def enum; end
|
569
|
+
|
570
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
571
|
+
def enum=(_arg0); end
|
572
|
+
|
573
|
+
# source://json_schema//lib/json_schema/schema.rb#198
|
574
|
+
def expand_references(options = T.unsafe(nil)); end
|
575
|
+
|
576
|
+
# source://json_schema//lib/json_schema/schema.rb#207
|
577
|
+
def expand_references!(options = T.unsafe(nil)); end
|
578
|
+
|
579
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
580
|
+
def expanded; end
|
581
|
+
|
582
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
583
|
+
def expanded=(_arg0); end
|
584
|
+
|
585
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
586
|
+
def expanded?; end
|
587
|
+
|
588
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
589
|
+
def format; end
|
590
|
+
|
591
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
592
|
+
def format=(_arg0); end
|
593
|
+
|
594
|
+
# Fragment of a JSON Pointer that can help us build a pointer back to this
|
595
|
+
# schema for debugging.
|
596
|
+
#
|
597
|
+
# source://json_schema//lib/json_schema/schema.rb#31
|
598
|
+
def fragment; end
|
599
|
+
|
600
|
+
# Fragment of a JSON Pointer that can help us build a pointer back to this
|
601
|
+
# schema for debugging.
|
602
|
+
#
|
603
|
+
# source://json_schema//lib/json_schema/schema.rb#31
|
604
|
+
def fragment=(_arg0); end
|
605
|
+
|
606
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
607
|
+
def href; end
|
608
|
+
|
609
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
610
|
+
def href=(_arg0); end
|
611
|
+
|
612
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
613
|
+
def id; end
|
614
|
+
|
615
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
616
|
+
def id=(_arg0); end
|
617
|
+
|
618
|
+
# source://json_schema//lib/json_schema/schema.rb#220
|
619
|
+
def inspect; end
|
620
|
+
|
621
|
+
# source://json_schema//lib/json_schema/schema.rb#224
|
622
|
+
def inspect_schema; end
|
623
|
+
|
624
|
+
# source://json_schema//lib/json_schema/schema.rb#253
|
625
|
+
def inspect_value(value); end
|
626
|
+
|
627
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
628
|
+
def items; end
|
629
|
+
|
630
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
631
|
+
def items=(_arg0); end
|
632
|
+
|
633
|
+
# source://json_schema//lib/json_schema/attributes.rb#40
|
634
|
+
def links; end
|
635
|
+
|
636
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
637
|
+
def links=(_arg0); end
|
638
|
+
|
639
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
640
|
+
def max; end
|
641
|
+
|
642
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
643
|
+
def max=(_arg0); end
|
644
|
+
|
645
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
646
|
+
def max_exclusive; end
|
647
|
+
|
648
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
649
|
+
def max_exclusive=(_arg0); end
|
650
|
+
|
651
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
652
|
+
def max_exclusive?; end
|
653
|
+
|
654
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
655
|
+
def max_items; end
|
656
|
+
|
657
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
658
|
+
def max_items=(_arg0); end
|
659
|
+
|
660
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
661
|
+
def max_length; end
|
662
|
+
|
663
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
664
|
+
def max_length=(_arg0); end
|
665
|
+
|
666
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
667
|
+
def max_properties; end
|
668
|
+
|
669
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
670
|
+
def max_properties=(_arg0); end
|
671
|
+
|
672
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
673
|
+
def media; end
|
674
|
+
|
675
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
676
|
+
def media=(_arg0); end
|
677
|
+
|
678
|
+
# source://json_schema//lib/json_schema/attributes.rb#40
|
679
|
+
def media_type; end
|
680
|
+
|
681
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
682
|
+
def media_type=(_arg0); end
|
683
|
+
|
684
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
685
|
+
def method; end
|
686
|
+
|
687
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
688
|
+
def method=(_arg0); end
|
689
|
+
|
690
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
691
|
+
def min; end
|
692
|
+
|
693
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
694
|
+
def min=(_arg0); end
|
695
|
+
|
696
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
697
|
+
def min_exclusive; end
|
698
|
+
|
699
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
700
|
+
def min_exclusive=(_arg0); end
|
701
|
+
|
702
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
703
|
+
def min_exclusive?; end
|
704
|
+
|
705
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
706
|
+
def min_items; end
|
707
|
+
|
708
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
709
|
+
def min_items=(_arg0); end
|
710
|
+
|
711
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
712
|
+
def min_length; end
|
713
|
+
|
714
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
715
|
+
def min_length=(_arg0); end
|
716
|
+
|
717
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
718
|
+
def min_properties; end
|
719
|
+
|
720
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
721
|
+
def min_properties=(_arg0); end
|
722
|
+
|
723
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
724
|
+
def multiple_of; end
|
725
|
+
|
726
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
727
|
+
def multiple_of=(_arg0); end
|
728
|
+
|
729
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
730
|
+
def not; end
|
731
|
+
|
732
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
733
|
+
def not=(_arg0); end
|
734
|
+
|
735
|
+
# source://json_schema//lib/json_schema/attributes.rb#40
|
736
|
+
def one_of; end
|
737
|
+
|
738
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
739
|
+
def one_of=(_arg0); end
|
740
|
+
|
741
|
+
# @return [Boolean]
|
742
|
+
#
|
743
|
+
# source://json_schema//lib/json_schema/schema.rb#261
|
744
|
+
def original?; end
|
745
|
+
|
746
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
747
|
+
def parent; end
|
748
|
+
|
749
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
750
|
+
def parent=(_arg0); end
|
751
|
+
|
752
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
753
|
+
def path_start; end
|
754
|
+
|
755
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
756
|
+
def path_start=(_arg0); end
|
757
|
+
|
758
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
759
|
+
def pattern; end
|
760
|
+
|
761
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
762
|
+
def pattern=(_arg0); end
|
763
|
+
|
764
|
+
# source://json_schema//lib/json_schema/attributes.rb#40
|
765
|
+
def pattern_properties; end
|
766
|
+
|
767
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
768
|
+
def pattern_properties=(_arg0); end
|
769
|
+
|
770
|
+
# source://json_schema//lib/json_schema/schema.rb#265
|
771
|
+
def pointer; end
|
772
|
+
|
773
|
+
# source://json_schema//lib/json_schema/attributes.rb#40
|
774
|
+
def properties; end
|
775
|
+
|
776
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
777
|
+
def properties=(_arg0); end
|
778
|
+
|
779
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
780
|
+
def read_only; end
|
781
|
+
|
782
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
783
|
+
def read_only=(_arg0); end
|
784
|
+
|
785
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
786
|
+
def read_only?; end
|
787
|
+
|
788
|
+
# Rather than a normal schema, the node may be a JSON Reference. In this
|
789
|
+
# case, no other attributes will be filled in except for #parent.
|
790
|
+
#
|
791
|
+
# source://json_schema//lib/json_schema/schema.rb#35
|
792
|
+
def reference; end
|
793
|
+
|
794
|
+
# Rather than a normal schema, the node may be a JSON Reference. In this
|
795
|
+
# case, no other attributes will be filled in except for #parent.
|
796
|
+
#
|
797
|
+
# source://json_schema//lib/json_schema/schema.rb#35
|
798
|
+
def reference=(_arg0); end
|
799
|
+
|
800
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
801
|
+
def rel; end
|
802
|
+
|
803
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
804
|
+
def rel=(_arg0); end
|
805
|
+
|
806
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
807
|
+
def required; end
|
808
|
+
|
809
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
810
|
+
def required=(_arg0); end
|
811
|
+
|
812
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
813
|
+
def schema; end
|
814
|
+
|
815
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
816
|
+
def schema=(_arg0); end
|
817
|
+
|
818
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
819
|
+
def strict_properties; end
|
820
|
+
|
821
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
822
|
+
def strict_properties=(_arg0); end
|
823
|
+
|
824
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
825
|
+
def target_schema; end
|
826
|
+
|
827
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
828
|
+
def target_schema=(_arg0); end
|
829
|
+
|
830
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
831
|
+
def title; end
|
832
|
+
|
833
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
834
|
+
def title=(_arg0); end
|
835
|
+
|
836
|
+
# source://json_schema//lib/json_schema/attributes.rb#40
|
837
|
+
def type; end
|
838
|
+
|
839
|
+
# source://json_schema//lib/json_schema/attributes.rb#52
|
840
|
+
def type=(value); end
|
841
|
+
|
842
|
+
# An array of Ruby classes that are equivalent to the types defined in the
|
843
|
+
# schema.
|
844
|
+
#
|
845
|
+
# Type: Array[Class]
|
846
|
+
#
|
847
|
+
# source://json_schema//lib/json_schema/schema.rb#216
|
848
|
+
def type_parsed; end
|
849
|
+
|
850
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
851
|
+
def unique_items; end
|
852
|
+
|
853
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
854
|
+
def unique_items=(_arg0); end
|
855
|
+
|
856
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
857
|
+
def unique_items?; end
|
858
|
+
|
859
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
860
|
+
def uri; end
|
861
|
+
|
862
|
+
# source://json_schema//lib/json_schema/attributes.rb#26
|
863
|
+
def uri=(_arg0); end
|
864
|
+
|
865
|
+
# source://json_schema//lib/json_schema/schema.rb#273
|
866
|
+
def validate(data, fail_fast: T.unsafe(nil)); end
|
867
|
+
|
868
|
+
# source://json_schema//lib/json_schema/schema.rb#279
|
869
|
+
def validate!(data, fail_fast: T.unsafe(nil)); end
|
870
|
+
end
|
871
|
+
|
872
|
+
# Link subobject for a hyperschema.
|
873
|
+
#
|
874
|
+
# source://json_schema//lib/json_schema/schema.rb#284
|
875
|
+
class JsonSchema::Schema::Link < ::JsonSchema::Schema; end
|
876
|
+
|
877
|
+
# Media type subobject for a hyperschema.
|
878
|
+
#
|
879
|
+
# source://json_schema//lib/json_schema/schema.rb#289
|
880
|
+
class JsonSchema::Schema::Media
|
881
|
+
# Returns the value of attribute binary_encoding.
|
882
|
+
#
|
883
|
+
# source://json_schema//lib/json_schema/schema.rb#290
|
884
|
+
def binary_encoding; end
|
885
|
+
|
886
|
+
# Sets the attribute binary_encoding
|
887
|
+
#
|
888
|
+
# @param value the value to set the attribute binary_encoding to.
|
889
|
+
#
|
890
|
+
# source://json_schema//lib/json_schema/schema.rb#290
|
891
|
+
def binary_encoding=(_arg0); end
|
892
|
+
|
893
|
+
# Returns the value of attribute type.
|
894
|
+
#
|
895
|
+
# source://json_schema//lib/json_schema/schema.rb#291
|
896
|
+
def type; end
|
897
|
+
|
898
|
+
# Sets the attribute type
|
899
|
+
#
|
900
|
+
# @param value the value to set the attribute type to.
|
901
|
+
#
|
902
|
+
# source://json_schema//lib/json_schema/schema.rb#291
|
903
|
+
def type=(_arg0); end
|
904
|
+
end
|
905
|
+
|
906
|
+
# source://json_schema//lib/json_schema/schema.rb#5
|
907
|
+
JsonSchema::Schema::TYPE_MAP = T.let(T.unsafe(nil), Hash)
|
908
|
+
|
909
|
+
# source://json_schema//lib/json_schema/error.rb#17
|
910
|
+
class JsonSchema::SchemaError < ::JsonSchema::Error
|
911
|
+
# @return [SchemaError] a new instance of SchemaError
|
912
|
+
#
|
913
|
+
# source://json_schema//lib/json_schema/error.rb#24
|
914
|
+
def initialize(schema, message, type); end
|
915
|
+
|
916
|
+
# Returns the value of attribute message.
|
917
|
+
#
|
918
|
+
# source://json_schema//lib/json_schema/error.rb#18
|
919
|
+
def message; end
|
920
|
+
|
921
|
+
# Sets the attribute message
|
922
|
+
#
|
923
|
+
# @param value the value to set the attribute message to.
|
924
|
+
#
|
925
|
+
# source://json_schema//lib/json_schema/error.rb#18
|
926
|
+
def message=(_arg0); end
|
927
|
+
|
928
|
+
# Returns the value of attribute schema.
|
929
|
+
#
|
930
|
+
# source://json_schema//lib/json_schema/error.rb#18
|
931
|
+
def schema; end
|
932
|
+
|
933
|
+
# Sets the attribute schema
|
934
|
+
#
|
935
|
+
# @param value the value to set the attribute schema to.
|
936
|
+
#
|
937
|
+
# source://json_schema//lib/json_schema/error.rb#18
|
938
|
+
def schema=(_arg0); end
|
939
|
+
|
940
|
+
# source://json_schema//lib/json_schema/error.rb#30
|
941
|
+
def to_s; end
|
942
|
+
|
943
|
+
# Returns the value of attribute type.
|
944
|
+
#
|
945
|
+
# source://json_schema//lib/json_schema/error.rb#18
|
946
|
+
def type; end
|
947
|
+
|
948
|
+
# Sets the attribute type
|
949
|
+
#
|
950
|
+
# @param value the value to set the attribute type to.
|
951
|
+
#
|
952
|
+
# source://json_schema//lib/json_schema/error.rb#18
|
953
|
+
def type=(_arg0); end
|
954
|
+
|
955
|
+
class << self
|
956
|
+
# source://json_schema//lib/json_schema/error.rb#20
|
957
|
+
def aggregate(errors); end
|
958
|
+
end
|
959
|
+
end
|
960
|
+
|
961
|
+
# source://json_schema//lib/json_schema/error.rb#39
|
962
|
+
class JsonSchema::ValidationError < ::JsonSchema::SchemaError
|
963
|
+
# @return [ValidationError] a new instance of ValidationError
|
964
|
+
#
|
965
|
+
# source://json_schema//lib/json_schema/error.rb#42
|
966
|
+
def initialize(schema, path, message, type, options = T.unsafe(nil)); end
|
967
|
+
|
968
|
+
# Returns the value of attribute data.
|
969
|
+
#
|
970
|
+
# source://json_schema//lib/json_schema/error.rb#40
|
971
|
+
def data; end
|
972
|
+
|
973
|
+
# Sets the attribute data
|
974
|
+
#
|
975
|
+
# @param value the value to set the attribute data to.
|
976
|
+
#
|
977
|
+
# source://json_schema//lib/json_schema/error.rb#40
|
978
|
+
def data=(_arg0); end
|
979
|
+
|
980
|
+
# Returns the value of attribute path.
|
981
|
+
#
|
982
|
+
# source://json_schema//lib/json_schema/error.rb#40
|
983
|
+
def path; end
|
984
|
+
|
985
|
+
# Sets the attribute path
|
986
|
+
#
|
987
|
+
# @param value the value to set the attribute path to.
|
988
|
+
#
|
989
|
+
# source://json_schema//lib/json_schema/error.rb#40
|
990
|
+
def path=(_arg0); end
|
991
|
+
|
992
|
+
# source://json_schema//lib/json_schema/error.rb#52
|
993
|
+
def pointer; end
|
994
|
+
|
995
|
+
# Returns the value of attribute sub_errors.
|
996
|
+
#
|
997
|
+
# source://json_schema//lib/json_schema/error.rb#40
|
998
|
+
def sub_errors; end
|
999
|
+
|
1000
|
+
# Sets the attribute sub_errors
|
1001
|
+
#
|
1002
|
+
# @param value the value to set the attribute sub_errors to.
|
1003
|
+
#
|
1004
|
+
# source://json_schema//lib/json_schema/error.rb#40
|
1005
|
+
def sub_errors=(_arg0); end
|
1006
|
+
|
1007
|
+
# source://json_schema//lib/json_schema/error.rb#56
|
1008
|
+
def to_s; end
|
1009
|
+
end
|
1010
|
+
|
1011
|
+
# source://json_schema//lib/json_schema/validator.rb#4
|
1012
|
+
class JsonSchema::Validator
|
1013
|
+
# @return [Validator] a new instance of Validator
|
1014
|
+
#
|
1015
|
+
# source://json_schema//lib/json_schema/validator.rb#7
|
1016
|
+
def initialize(schema); end
|
1017
|
+
|
1018
|
+
# Returns the value of attribute errors.
|
1019
|
+
#
|
1020
|
+
# source://json_schema//lib/json_schema/validator.rb#5
|
1021
|
+
def errors; end
|
1022
|
+
|
1023
|
+
# Sets the attribute errors
|
1024
|
+
#
|
1025
|
+
# @param value the value to set the attribute errors to.
|
1026
|
+
#
|
1027
|
+
# source://json_schema//lib/json_schema/validator.rb#5
|
1028
|
+
def errors=(_arg0); end
|
1029
|
+
|
1030
|
+
# source://json_schema//lib/json_schema/validator.rb#11
|
1031
|
+
def validate(data, fail_fast: T.unsafe(nil)); end
|
1032
|
+
|
1033
|
+
# source://json_schema//lib/json_schema/validator.rb#33
|
1034
|
+
def validate!(data, fail_fast: T.unsafe(nil)); end
|
1035
|
+
|
1036
|
+
private
|
1037
|
+
|
1038
|
+
# source://json_schema//lib/json_schema/validator.rb#77
|
1039
|
+
def fast_and(valid_old, valid_new); end
|
1040
|
+
|
1041
|
+
# source://json_schema//lib/json_schema/validator.rb#550
|
1042
|
+
def find_parent(schema); end
|
1043
|
+
|
1044
|
+
# source://json_schema//lib/json_schema/validator.rb#41
|
1045
|
+
def first_visit(schema, errors, path); end
|
1046
|
+
|
1047
|
+
# for use with additionalProperties and strictProperties
|
1048
|
+
#
|
1049
|
+
# source://json_schema//lib/json_schema/validator.rb#60
|
1050
|
+
def get_extra_keys(schema, data); end
|
1051
|
+
|
1052
|
+
# works around &&'s "lazy" behavior
|
1053
|
+
#
|
1054
|
+
# source://json_schema//lib/json_schema/validator.rb#73
|
1055
|
+
def strict_and(valid_old, valid_new); end
|
1056
|
+
|
1057
|
+
# source://json_schema//lib/json_schema/validator.rb#135
|
1058
|
+
def validate_additional_properties(schema, data, errors, path); end
|
1059
|
+
|
1060
|
+
# source://json_schema//lib/json_schema/validator.rb#155
|
1061
|
+
def validate_all_of(schema, data, errors, path); end
|
1062
|
+
|
1063
|
+
# source://json_schema//lib/json_schema/validator.rb#182
|
1064
|
+
def validate_any_of(schema, data, errors, path); end
|
1065
|
+
|
1066
|
+
# source://json_schema//lib/json_schema/validator.rb#82
|
1067
|
+
def validate_data(schema, data, errors, path); end
|
1068
|
+
|
1069
|
+
# source://json_schema//lib/json_schema/validator.rb#201
|
1070
|
+
def validate_dependencies(schema, data, errors, path); end
|
1071
|
+
|
1072
|
+
# source://json_schema//lib/json_schema/validator.rb#231
|
1073
|
+
def validate_enum(schema, data, errors, path); end
|
1074
|
+
|
1075
|
+
# source://json_schema//lib/json_schema/validator.rb#242
|
1076
|
+
def validate_extra(schema, data, errors, path); end
|
1077
|
+
|
1078
|
+
# source://json_schema//lib/json_schema/validator.rb#216
|
1079
|
+
def validate_format(schema, data, errors, path); end
|
1080
|
+
|
1081
|
+
# source://json_schema//lib/json_schema/validator.rb#257
|
1082
|
+
def validate_items(schema, data, errors, path); end
|
1083
|
+
|
1084
|
+
# source://json_schema//lib/json_schema/validator.rb#300
|
1085
|
+
def validate_max(schema, data, errors, path); end
|
1086
|
+
|
1087
|
+
# source://json_schema//lib/json_schema/validator.rb#315
|
1088
|
+
def validate_max_items(schema, data, errors, path); end
|
1089
|
+
|
1090
|
+
# source://json_schema//lib/json_schema/validator.rb#330
|
1091
|
+
def validate_max_length(schema, data, errors, path); end
|
1092
|
+
|
1093
|
+
# source://json_schema//lib/json_schema/validator.rb#345
|
1094
|
+
def validate_max_properties(schema, data, errors, path); end
|
1095
|
+
|
1096
|
+
# source://json_schema//lib/json_schema/validator.rb#360
|
1097
|
+
def validate_min(schema, data, errors, path); end
|
1098
|
+
|
1099
|
+
# source://json_schema//lib/json_schema/validator.rb#375
|
1100
|
+
def validate_min_items(schema, data, errors, path); end
|
1101
|
+
|
1102
|
+
# source://json_schema//lib/json_schema/validator.rb#390
|
1103
|
+
def validate_min_length(schema, data, errors, path); end
|
1104
|
+
|
1105
|
+
# source://json_schema//lib/json_schema/validator.rb#405
|
1106
|
+
def validate_min_properties(schema, data, errors, path); end
|
1107
|
+
|
1108
|
+
# source://json_schema//lib/json_schema/validator.rb#420
|
1109
|
+
def validate_multiple_of(schema, data, errors, path); end
|
1110
|
+
|
1111
|
+
# source://json_schema//lib/json_schema/validator.rb#458
|
1112
|
+
def validate_not(schema, data, errors, path); end
|
1113
|
+
|
1114
|
+
# source://json_schema//lib/json_schema/validator.rb#431
|
1115
|
+
def validate_one_of(schema, data, errors, path); end
|
1116
|
+
|
1117
|
+
# source://json_schema//lib/json_schema/validator.rb#470
|
1118
|
+
def validate_pattern(schema, data, errors, path); end
|
1119
|
+
|
1120
|
+
# source://json_schema//lib/json_schema/validator.rb#482
|
1121
|
+
def validate_pattern_properties(schema, data, errors, path); end
|
1122
|
+
|
1123
|
+
# source://json_schema//lib/json_schema/validator.rb#496
|
1124
|
+
def validate_properties(schema, data, errors, path); end
|
1125
|
+
|
1126
|
+
# source://json_schema//lib/json_schema/validator.rb#507
|
1127
|
+
def validate_required(schema, data, errors, path, required); end
|
1128
|
+
|
1129
|
+
# source://json_schema//lib/json_schema/validator.rb#520
|
1130
|
+
def validate_strict_properties(schema, data, errors, path); end
|
1131
|
+
|
1132
|
+
# source://json_schema//lib/json_schema/validator.rb#527
|
1133
|
+
def validate_type(schema, data, errors, path); end
|
1134
|
+
|
1135
|
+
# source://json_schema//lib/json_schema/validator.rb#539
|
1136
|
+
def validate_unique_items(schema, data, errors, path); end
|
1137
|
+
end
|
1138
|
+
|
1139
|
+
# source://json_schema//lib/json_schema/validator.rb#594
|
1140
|
+
JsonSchema::Validator::DATE_PATTERN = T.let(T.unsafe(nil), Regexp)
|
1141
|
+
|
1142
|
+
# source://json_schema//lib/json_schema/validator.rb#596
|
1143
|
+
JsonSchema::Validator::DATE_TIME_PATTERN = T.let(T.unsafe(nil), Regexp)
|
1144
|
+
|
1145
|
+
# source://json_schema//lib/json_schema/validator.rb#569
|
1146
|
+
JsonSchema::Validator::DEFAULT_FORMAT_VALIDATORS = T.let(T.unsafe(nil), Hash)
|
1147
|
+
|
1148
|
+
# source://json_schema//lib/json_schema/validator.rb#590
|
1149
|
+
JsonSchema::Validator::EMAIL_PATTERN = T.let(T.unsafe(nil), Regexp)
|
1150
|
+
|
1151
|
+
# source://json_schema//lib/json_schema/validator.rb#592
|
1152
|
+
JsonSchema::Validator::HOSTNAME_PATTERN = T.let(T.unsafe(nil), Regexp)
|
1153
|
+
|
1154
|
+
# from: http://stackoverflow.com/a/17871737
|
1155
|
+
#
|
1156
|
+
# source://json_schema//lib/json_schema/validator.rb#599
|
1157
|
+
JsonSchema::Validator::IPV4_PATTERN = T.let(T.unsafe(nil), Regexp)
|
1158
|
+
|
1159
|
+
# from: http://stackoverflow.com/a/17871737
|
1160
|
+
#
|
1161
|
+
# source://json_schema//lib/json_schema/validator.rb#602
|
1162
|
+
JsonSchema::Validator::IPV6_PATTERN = T.let(T.unsafe(nil), Regexp)
|
1163
|
+
|
1164
|
+
# source://json_schema//lib/json_schema/validator.rb#604
|
1165
|
+
JsonSchema::Validator::UUID_PATTERN = T.let(T.unsafe(nil), Regexp)
|