[d24f17c] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | exports.__esModule = true;
|
---|
| 4 | exports.default = void 0;
|
---|
| 5 | var _apidomCore = require("@swagger-api/apidom-core");
|
---|
| 6 | class Schema extends _apidomCore.ObjectElement {
|
---|
| 7 | constructor(content, meta, attributes) {
|
---|
| 8 | super(content, meta, attributes);
|
---|
| 9 | this.element = 'schema';
|
---|
| 10 | }
|
---|
| 11 |
|
---|
| 12 | /**
|
---|
| 13 | * Core vocabulary
|
---|
| 14 | *
|
---|
| 15 | * URI: https://json-schema.org/draft/2020-12/vocab/core
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | get $schema() {
|
---|
| 19 | return this.get('$schema');
|
---|
| 20 | }
|
---|
| 21 | set $schema($schema) {
|
---|
| 22 | this.set('$schema', $schema);
|
---|
| 23 | }
|
---|
| 24 | get $vocabulary() {
|
---|
| 25 | return this.get('$vocabulary');
|
---|
| 26 | }
|
---|
| 27 | set $vocabulary($vocabulary) {
|
---|
| 28 | this.set('$vocabulary', $vocabulary);
|
---|
| 29 | }
|
---|
| 30 | get $id() {
|
---|
| 31 | return this.get('$id');
|
---|
| 32 | }
|
---|
| 33 | set $id($id) {
|
---|
| 34 | this.set('$id', $id);
|
---|
| 35 | }
|
---|
| 36 | get $anchor() {
|
---|
| 37 | return this.get('$anchor');
|
---|
| 38 | }
|
---|
| 39 | set $anchor($anchor) {
|
---|
| 40 | this.set('$anchor', $anchor);
|
---|
| 41 | }
|
---|
| 42 | get $dynamicAnchor() {
|
---|
| 43 | return this.get('$dynamicAnchor');
|
---|
| 44 | }
|
---|
| 45 | set $dynamicAnchor($dynamicAnchor) {
|
---|
| 46 | this.set('$dynamicAnchor', $dynamicAnchor);
|
---|
| 47 | }
|
---|
| 48 | get $dynamicRef() {
|
---|
| 49 | return this.get('$dynamicRef');
|
---|
| 50 | }
|
---|
| 51 | set $dynamicRef($dynamicRef) {
|
---|
| 52 | this.set('$dynamicRef', $dynamicRef);
|
---|
| 53 | }
|
---|
| 54 | get $ref() {
|
---|
| 55 | return this.get('$ref');
|
---|
| 56 | }
|
---|
| 57 | set $ref($ref) {
|
---|
| 58 | this.set('$ref', $ref);
|
---|
| 59 | }
|
---|
| 60 | get $defs() {
|
---|
| 61 | return this.get('$defs');
|
---|
| 62 | }
|
---|
| 63 | set $defs($defs) {
|
---|
| 64 | this.set('$defs', $defs);
|
---|
| 65 | }
|
---|
| 66 | get $comment() {
|
---|
| 67 | return this.get('$comment');
|
---|
| 68 | }
|
---|
| 69 | set $comment($comment) {
|
---|
| 70 | this.set('$comment', $comment);
|
---|
| 71 | }
|
---|
| 72 |
|
---|
| 73 | /**
|
---|
| 74 | * Applicator vocabulary
|
---|
| 75 | *
|
---|
| 76 | * URI: https://json-schema.org/draft/2020-12/vocab/applicator
|
---|
| 77 | */
|
---|
| 78 |
|
---|
| 79 | get allOf() {
|
---|
| 80 | return this.get('allOf');
|
---|
| 81 | }
|
---|
| 82 | set allOf(allOf) {
|
---|
| 83 | this.set('allOf', allOf);
|
---|
| 84 | }
|
---|
| 85 | get anyOf() {
|
---|
| 86 | return this.get('anyOf');
|
---|
| 87 | }
|
---|
| 88 | set anyOf(anyOf) {
|
---|
| 89 | this.set('anyOf', anyOf);
|
---|
| 90 | }
|
---|
| 91 | get oneOf() {
|
---|
| 92 | return this.get('oneOf');
|
---|
| 93 | }
|
---|
| 94 | set oneOf(oneOf) {
|
---|
| 95 | this.set('oneOf', oneOf);
|
---|
| 96 | }
|
---|
| 97 | get not() {
|
---|
| 98 | return this.get('not');
|
---|
| 99 | }
|
---|
| 100 | set not(not) {
|
---|
| 101 | this.set('not', not);
|
---|
| 102 | }
|
---|
| 103 | get if() {
|
---|
| 104 | return this.get('if');
|
---|
| 105 | }
|
---|
| 106 | set if(ifSchema) {
|
---|
| 107 | this.set('if', ifSchema);
|
---|
| 108 | }
|
---|
| 109 | get then() {
|
---|
| 110 | return this.get('then');
|
---|
| 111 | }
|
---|
| 112 | set then(thenSchema) {
|
---|
| 113 | this.set('then', thenSchema);
|
---|
| 114 | }
|
---|
| 115 | get else() {
|
---|
| 116 | return this.get('else');
|
---|
| 117 | }
|
---|
| 118 | set else(elseSchema) {
|
---|
| 119 | this.set('else', elseSchema);
|
---|
| 120 | }
|
---|
| 121 | get dependentSchemas() {
|
---|
| 122 | return this.get('dependentSchemas');
|
---|
| 123 | }
|
---|
| 124 | set dependentSchemas(dependentSchemas) {
|
---|
| 125 | this.set('dependentSchemas', dependentSchemas);
|
---|
| 126 | }
|
---|
| 127 | get prefixItems() {
|
---|
| 128 | return this.get('prefixItems');
|
---|
| 129 | }
|
---|
| 130 | set prefixItems(prefixItems) {
|
---|
| 131 | this.set('prefixItems', prefixItems);
|
---|
| 132 | }
|
---|
| 133 | get items() {
|
---|
| 134 | return this.get('items');
|
---|
| 135 | }
|
---|
| 136 | set items(items) {
|
---|
| 137 | this.set('items', items);
|
---|
| 138 | }
|
---|
| 139 | get containsProp() {
|
---|
| 140 | return this.get('contains');
|
---|
| 141 | }
|
---|
| 142 | set containsProp(containsProp) {
|
---|
| 143 | this.set('contains', containsProp);
|
---|
| 144 | }
|
---|
| 145 | get properties() {
|
---|
| 146 | return this.get('properties');
|
---|
| 147 | }
|
---|
| 148 | set properties(properties) {
|
---|
| 149 | this.set('properties', properties);
|
---|
| 150 | }
|
---|
| 151 | get patternProperties() {
|
---|
| 152 | return this.get('patternProperties');
|
---|
| 153 | }
|
---|
| 154 | set patternProperties(patternProperties) {
|
---|
| 155 | this.set('patternProperties', patternProperties);
|
---|
| 156 | }
|
---|
| 157 | get additionalProperties() {
|
---|
| 158 | return this.get('additionalProperties');
|
---|
| 159 | }
|
---|
| 160 | set additionalProperties(additionalProperties) {
|
---|
| 161 | this.set('additionalProperties', additionalProperties);
|
---|
| 162 | }
|
---|
| 163 | get propertyNames() {
|
---|
| 164 | return this.get('propertyNames');
|
---|
| 165 | }
|
---|
| 166 | set propertyNames(propertyNames) {
|
---|
| 167 | this.set('propertyNames', propertyNames);
|
---|
| 168 | }
|
---|
| 169 |
|
---|
| 170 | /**
|
---|
| 171 | * Unevaluated Locations vocabulary
|
---|
| 172 | *
|
---|
| 173 | * URI: https://json-schema.org/draft/2020-12/vocab/unevaluated
|
---|
| 174 | */
|
---|
| 175 |
|
---|
| 176 | get unevaluatedItems() {
|
---|
| 177 | return this.get('unevaluatedItems');
|
---|
| 178 | }
|
---|
| 179 | set unevaluatedItems(unevaluatedItems) {
|
---|
| 180 | this.set('unevaluatedItems', unevaluatedItems);
|
---|
| 181 | }
|
---|
| 182 | get unevaluatedProperties() {
|
---|
| 183 | return this.get('unevaluatedProperties');
|
---|
| 184 | }
|
---|
| 185 | set unevaluatedProperties(unevaluatedProperties) {
|
---|
| 186 | this.set('unevaluatedProperties', unevaluatedProperties);
|
---|
| 187 | }
|
---|
| 188 |
|
---|
| 189 | /**
|
---|
| 190 | * Validation vocabulary
|
---|
| 191 | *
|
---|
| 192 | * URI: https://json-schema.org/draft/2020-12/vocab/validation
|
---|
| 193 | */
|
---|
| 194 |
|
---|
| 195 | /**
|
---|
| 196 | * Validation Keywords for Any Instance Type
|
---|
| 197 | *
|
---|
| 198 | * URI: https://json-schema.org/draft/2020-12/json-schema-validation.html#rfc.section.6.1
|
---|
| 199 | */
|
---|
| 200 |
|
---|
| 201 | get type() {
|
---|
| 202 | return this.get('type');
|
---|
| 203 | }
|
---|
| 204 | set type(type) {
|
---|
| 205 | this.set('type', type);
|
---|
| 206 | }
|
---|
| 207 | get enum() {
|
---|
| 208 | return this.get('enum');
|
---|
| 209 | }
|
---|
| 210 | set enum(enumVal) {
|
---|
| 211 | this.set('enum', enumVal);
|
---|
| 212 | }
|
---|
| 213 | get const() {
|
---|
| 214 | return this.get('const');
|
---|
| 215 | }
|
---|
| 216 | set const(constVal) {
|
---|
| 217 | this.set('const', constVal);
|
---|
| 218 | }
|
---|
| 219 |
|
---|
| 220 | /**
|
---|
| 221 | * Validation Keywords for Numeric Instances (number and integer)
|
---|
| 222 | *
|
---|
| 223 | * URI: https://json-schema.org/draft/2020-12/json-schema-validation.html#numeric
|
---|
| 224 | */
|
---|
| 225 |
|
---|
| 226 | get multipleOf() {
|
---|
| 227 | return this.get('multipleOf');
|
---|
| 228 | }
|
---|
| 229 | set multipleOf(multipleOf) {
|
---|
| 230 | this.set('multipleOf', multipleOf);
|
---|
| 231 | }
|
---|
| 232 | get maximum() {
|
---|
| 233 | return this.get('maximum');
|
---|
| 234 | }
|
---|
| 235 | set maximum(maximum) {
|
---|
| 236 | this.set('maximum', maximum);
|
---|
| 237 | }
|
---|
| 238 | get exclusiveMaximum() {
|
---|
| 239 | return this.get('exclusiveMaximum');
|
---|
| 240 | }
|
---|
| 241 | set exclusiveMaximum(exclusiveMaximum) {
|
---|
| 242 | this.set('exclusiveMaximum', exclusiveMaximum);
|
---|
| 243 | }
|
---|
| 244 | get minimum() {
|
---|
| 245 | return this.get('minimum');
|
---|
| 246 | }
|
---|
| 247 | set minimum(minimum) {
|
---|
| 248 | this.set('minimum', minimum);
|
---|
| 249 | }
|
---|
| 250 | get exclusiveMinimum() {
|
---|
| 251 | return this.get('exclusiveMinimum');
|
---|
| 252 | }
|
---|
| 253 | set exclusiveMinimum(exclusiveMinimum) {
|
---|
| 254 | this.set('exclusiveMinimum', exclusiveMinimum);
|
---|
| 255 | }
|
---|
| 256 |
|
---|
| 257 | /**
|
---|
| 258 | * Validation Keywords for Strings
|
---|
| 259 | *
|
---|
| 260 | * URI: https://json-schema.org/draft/2020-12/json-schema-validation.html#string
|
---|
| 261 | */
|
---|
| 262 |
|
---|
| 263 | get maxLength() {
|
---|
| 264 | return this.get('maxLength');
|
---|
| 265 | }
|
---|
| 266 | set maxLength(maxLength) {
|
---|
| 267 | this.set('maxLength', maxLength);
|
---|
| 268 | }
|
---|
| 269 | get minLength() {
|
---|
| 270 | return this.get('minLength');
|
---|
| 271 | }
|
---|
| 272 | set minLength(minLength) {
|
---|
| 273 | this.set('minLength', minLength);
|
---|
| 274 | }
|
---|
| 275 | get pattern() {
|
---|
| 276 | return this.get('pattern');
|
---|
| 277 | }
|
---|
| 278 | set pattern(pattern) {
|
---|
| 279 | this.set('pattern', pattern);
|
---|
| 280 | }
|
---|
| 281 |
|
---|
| 282 | /**
|
---|
| 283 | * Validation Keywords for Arrays
|
---|
| 284 | *
|
---|
| 285 | * URI: https://json-schema.org/draft/2020-12/json-schema-validation.html#rfc.section.6.4
|
---|
| 286 | */
|
---|
| 287 |
|
---|
| 288 | get maxItems() {
|
---|
| 289 | return this.get('maxItems');
|
---|
| 290 | }
|
---|
| 291 | set maxItems(maxItems) {
|
---|
| 292 | this.set('maxItems', maxItems);
|
---|
| 293 | }
|
---|
| 294 | get minItems() {
|
---|
| 295 | return this.get('minItems');
|
---|
| 296 | }
|
---|
| 297 | set minItems(minItems) {
|
---|
| 298 | this.set('minItems', minItems);
|
---|
| 299 | }
|
---|
| 300 | get uniqueItems() {
|
---|
| 301 | return this.get('uniqueItems');
|
---|
| 302 | }
|
---|
| 303 | set uniqueItems(uniqueItems) {
|
---|
| 304 | this.set('uniqueItems', uniqueItems);
|
---|
| 305 | }
|
---|
| 306 | get maxContains() {
|
---|
| 307 | return this.get('maxContains');
|
---|
| 308 | }
|
---|
| 309 | set maxContains(maxContains) {
|
---|
| 310 | this.set('maxContains', maxContains);
|
---|
| 311 | }
|
---|
| 312 | get minContains() {
|
---|
| 313 | return this.get('minContains');
|
---|
| 314 | }
|
---|
| 315 | set minContains(minContains) {
|
---|
| 316 | this.set('minContains', minContains);
|
---|
| 317 | }
|
---|
| 318 |
|
---|
| 319 | /**
|
---|
| 320 | * Validation Keywords for Objects
|
---|
| 321 | *
|
---|
| 322 | * URI: https://json-schema.org/draft/2020-12/json-schema-validation.html#rfc.section.6.5
|
---|
| 323 | */
|
---|
| 324 |
|
---|
| 325 | get maxProperties() {
|
---|
| 326 | return this.get('maxProperties');
|
---|
| 327 | }
|
---|
| 328 | set maxProperties(maxProperties) {
|
---|
| 329 | this.set('maxProperties', maxProperties);
|
---|
| 330 | }
|
---|
| 331 | get minProperties() {
|
---|
| 332 | return this.get('minProperties');
|
---|
| 333 | }
|
---|
| 334 | set minProperties(minProperties) {
|
---|
| 335 | this.set('minProperties', minProperties);
|
---|
| 336 | }
|
---|
| 337 | get required() {
|
---|
| 338 | return this.get('required');
|
---|
| 339 | }
|
---|
| 340 | set required(required) {
|
---|
| 341 | this.set('required', required);
|
---|
| 342 | }
|
---|
| 343 | get dependentRequired() {
|
---|
| 344 | return this.get('dependentRequired');
|
---|
| 345 | }
|
---|
| 346 | set dependentRequired(dependentRequired) {
|
---|
| 347 | this.set('dependentRequired', dependentRequired);
|
---|
| 348 | }
|
---|
| 349 |
|
---|
| 350 | /**
|
---|
| 351 | * Vocabulary for Basic Meta-Data Annotations
|
---|
| 352 | *
|
---|
| 353 | * URI: https://json-schema.org/draft/2020-12/vocab/meta-data
|
---|
| 354 | */
|
---|
| 355 |
|
---|
| 356 | get title() {
|
---|
| 357 | return this.get('title');
|
---|
| 358 | }
|
---|
| 359 | set title(title) {
|
---|
| 360 | this.set('title', title);
|
---|
| 361 | }
|
---|
| 362 | get description() {
|
---|
| 363 | return this.get('description');
|
---|
| 364 | }
|
---|
| 365 | set description(description) {
|
---|
| 366 | this.set('description', description);
|
---|
| 367 | }
|
---|
| 368 | get default() {
|
---|
| 369 | return this.get('default');
|
---|
| 370 | }
|
---|
| 371 | set default(defaultVal) {
|
---|
| 372 | this.set('default', defaultVal);
|
---|
| 373 | }
|
---|
| 374 | get deprecated() {
|
---|
| 375 | return this.get('deprecated');
|
---|
| 376 | }
|
---|
| 377 | set deprecated(deprecated) {
|
---|
| 378 | this.set('deprecated', deprecated);
|
---|
| 379 | }
|
---|
| 380 | get readOnly() {
|
---|
| 381 | return this.get('readOnly');
|
---|
| 382 | }
|
---|
| 383 | set readOnly(readOnly) {
|
---|
| 384 | this.set('readOnly', readOnly);
|
---|
| 385 | }
|
---|
| 386 | get writeOnly() {
|
---|
| 387 | return this.get('writeOnly');
|
---|
| 388 | }
|
---|
| 389 | set writeOnly(writeOnly) {
|
---|
| 390 | this.set('writeOnly', writeOnly);
|
---|
| 391 | }
|
---|
| 392 | get examples() {
|
---|
| 393 | return this.get('examples');
|
---|
| 394 | }
|
---|
| 395 | set examples(examples) {
|
---|
| 396 | this.set('examples', examples);
|
---|
| 397 | }
|
---|
| 398 |
|
---|
| 399 | /**
|
---|
| 400 | * Vocabularies for Semantic Content With "format"
|
---|
| 401 | *
|
---|
| 402 | * URI: https://json-schema.org/draft/2020-12/vocab/format-annotation
|
---|
| 403 | */
|
---|
| 404 |
|
---|
| 405 | get format() {
|
---|
| 406 | return this.get('format');
|
---|
| 407 | }
|
---|
| 408 | set format(format) {
|
---|
| 409 | this.set('format', format);
|
---|
| 410 | }
|
---|
| 411 |
|
---|
| 412 | /**
|
---|
| 413 | * Vocabulary for the Contents of String-Encoded Data
|
---|
| 414 | *
|
---|
| 415 | * URI: https://json-schema.org/draft/2020-12/vocab/content
|
---|
| 416 | */
|
---|
| 417 |
|
---|
| 418 | get contentEncoding() {
|
---|
| 419 | return this.get('contentEncoding');
|
---|
| 420 | }
|
---|
| 421 | set contentEncoding(contentEncoding) {
|
---|
| 422 | this.set('contentEncoding', contentEncoding);
|
---|
| 423 | }
|
---|
| 424 | get contentMediaType() {
|
---|
| 425 | return this.get('contentMediaType');
|
---|
| 426 | }
|
---|
| 427 | set contentMediaType(contentMediaType) {
|
---|
| 428 | this.set('contentMediaType', contentMediaType);
|
---|
| 429 | }
|
---|
| 430 | get contentSchema() {
|
---|
| 431 | return this.get('contentSchema');
|
---|
| 432 | }
|
---|
| 433 | set contentSchema(contentSchema) {
|
---|
| 434 | this.set('contentSchema', contentSchema);
|
---|
| 435 | }
|
---|
| 436 |
|
---|
| 437 | /**
|
---|
| 438 | * OAS base vocabulary
|
---|
| 439 | *
|
---|
| 440 | * URI: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md#baseVocabulary
|
---|
| 441 | */
|
---|
| 442 |
|
---|
| 443 | get discriminator() {
|
---|
| 444 | return this.get('discriminator');
|
---|
| 445 | }
|
---|
| 446 | set discriminator(discriminator) {
|
---|
| 447 | this.set('discriminator', discriminator);
|
---|
| 448 | }
|
---|
| 449 | get xml() {
|
---|
| 450 | return this.get('xml');
|
---|
| 451 | }
|
---|
| 452 | set xml(xml) {
|
---|
| 453 | this.set('xml', xml);
|
---|
| 454 | }
|
---|
| 455 | get externalDocs() {
|
---|
| 456 | return this.get('externalDocs');
|
---|
| 457 | }
|
---|
| 458 | set externalDocs(externalDocs) {
|
---|
| 459 | this.set('externalDocs', externalDocs);
|
---|
| 460 | }
|
---|
| 461 |
|
---|
| 462 | /**
|
---|
| 463 | * @deprecated The example property has been deprecated in favor of the JSON Schema examples keyword. Use of example is discouraged, and later versions of this specification may remove it.
|
---|
| 464 | */
|
---|
| 465 | get example() {
|
---|
| 466 | return this.get('example');
|
---|
| 467 | }
|
---|
| 468 |
|
---|
| 469 | /**
|
---|
| 470 | * @deprecated The example property has been deprecated in favor of the JSON Schema examples keyword. Use of example is discouraged, and later versions of this specification may remove it.
|
---|
| 471 | */
|
---|
| 472 | set example(example) {
|
---|
| 473 | this.set('example', example);
|
---|
| 474 | }
|
---|
| 475 | }
|
---|
| 476 | var _default = exports.default = Schema; |
---|