[d24f17c] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | exports.__esModule = true;
|
---|
| 4 | exports.default = void 0;
|
---|
| 5 | var _apidomError = require("@swagger-api/apidom-error");
|
---|
| 6 | var _apidomNsJsonSchemaDraft = require("@swagger-api/apidom-ns-json-schema-draft-4");
|
---|
| 7 | /* eslint-disable class-methods-use-this */
|
---|
| 8 | class Schema extends _apidomNsJsonSchemaDraft.JSONSchemaElement {
|
---|
| 9 | constructor(content, meta, attributes) {
|
---|
| 10 | super(content, meta, attributes);
|
---|
| 11 | this.element = 'schema';
|
---|
| 12 | this.classes.push('json-schema-draft-4');
|
---|
| 13 | }
|
---|
| 14 |
|
---|
| 15 | /**
|
---|
| 16 | * Core vocabulary
|
---|
| 17 | *
|
---|
| 18 | * URI: https://tools.ietf.org/html/draft-wright-json-schema-00
|
---|
| 19 | */
|
---|
| 20 | get idProp() {
|
---|
| 21 | throw new _apidomError.UnsupportedOperationError('idProp getter in Schema class is not not supported.');
|
---|
| 22 | }
|
---|
| 23 | set idProp(idProps) {
|
---|
| 24 | throw new _apidomError.UnsupportedOperationError('idProp setter in Schema class is not not supported.');
|
---|
| 25 | }
|
---|
| 26 | get $schema() {
|
---|
| 27 | throw new _apidomError.UnsupportedOperationError('$schema getter in Schema class is not not supported.');
|
---|
| 28 | }
|
---|
| 29 | set $schema($schema) {
|
---|
| 30 | throw new _apidomError.UnsupportedOperationError('$schema setter in Schema class is not not supported.');
|
---|
| 31 | }
|
---|
| 32 |
|
---|
| 33 | /**
|
---|
| 34 | * Validation keywords for arrays
|
---|
| 35 | */
|
---|
| 36 |
|
---|
| 37 | get additionalItems() {
|
---|
| 38 | return this.get('additionalItems');
|
---|
| 39 | }
|
---|
| 40 | set additionalItems(additionalItems) {
|
---|
| 41 | this.set('additionalItems', additionalItems);
|
---|
| 42 | }
|
---|
| 43 | get items() {
|
---|
| 44 | return this.get('items');
|
---|
| 45 | }
|
---|
| 46 | set items(items) {
|
---|
| 47 | this.set('items', items);
|
---|
| 48 | }
|
---|
| 49 |
|
---|
| 50 | /**
|
---|
| 51 | * Validation keywords for objects
|
---|
| 52 | */
|
---|
| 53 |
|
---|
| 54 | get additionalProperties() {
|
---|
| 55 | return this.get('additionalProperties');
|
---|
| 56 | }
|
---|
| 57 | set additionalProperties(additionalProperties) {
|
---|
| 58 | this.set('additionalProperties', additionalProperties);
|
---|
| 59 | }
|
---|
| 60 | get patternProperties() {
|
---|
| 61 | throw new _apidomError.UnsupportedOperationError('patternProperties getter in Schema class is not not supported.');
|
---|
| 62 | }
|
---|
| 63 | set patternProperties(patternProperties) {
|
---|
| 64 | throw new _apidomError.UnsupportedOperationError('patternProperties setter in Schema class is not not supported.');
|
---|
| 65 | }
|
---|
| 66 | get dependencies() {
|
---|
| 67 | throw new _apidomError.UnsupportedOperationError('dependencies getter in Schema class is not not supported.');
|
---|
| 68 | }
|
---|
| 69 | set dependencies(dependencies) {
|
---|
| 70 | throw new _apidomError.UnsupportedOperationError('dependencies setter in Schema class is not not supported.');
|
---|
| 71 | }
|
---|
| 72 |
|
---|
| 73 | /**
|
---|
| 74 | * Validation keywords for any instance type
|
---|
| 75 | */
|
---|
| 76 |
|
---|
| 77 | get type() {
|
---|
| 78 | return this.get('type');
|
---|
| 79 | }
|
---|
| 80 | set type(type) {
|
---|
| 81 | this.set('type', type);
|
---|
| 82 | }
|
---|
| 83 | get not() {
|
---|
| 84 | return this.get('not');
|
---|
| 85 | }
|
---|
| 86 | set not(not) {
|
---|
| 87 | this.set('not', not);
|
---|
| 88 | }
|
---|
| 89 | get definitions() {
|
---|
| 90 | throw new _apidomError.UnsupportedOperationError('definitions getter in Schema class is not not supported.');
|
---|
| 91 | }
|
---|
| 92 | set definitions(definitions) {
|
---|
| 93 | throw new _apidomError.UnsupportedOperationError('definitions setter in Schema class is not not supported.');
|
---|
| 94 | }
|
---|
| 95 |
|
---|
| 96 | /**
|
---|
| 97 | * JSON Hyper-Schema
|
---|
| 98 | *
|
---|
| 99 | * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
|
---|
| 100 | */
|
---|
| 101 |
|
---|
| 102 | get base() {
|
---|
| 103 | throw new _apidomError.UnsupportedOperationError('base getter in Schema class is not not supported.');
|
---|
| 104 | }
|
---|
| 105 | set base(base) {
|
---|
| 106 | throw new _apidomError.UnsupportedOperationError('base setter in Schema class is not not supported.');
|
---|
| 107 | }
|
---|
| 108 | get links() {
|
---|
| 109 | throw new _apidomError.UnsupportedOperationError('links getter in Schema class is not not supported.');
|
---|
| 110 | }
|
---|
| 111 | set links(links) {
|
---|
| 112 | throw new _apidomError.UnsupportedOperationError('links setter in Schema class is not not supported.');
|
---|
| 113 | }
|
---|
| 114 | get media() {
|
---|
| 115 | throw new _apidomError.UnsupportedOperationError('media getter in Schema class is not not supported.');
|
---|
| 116 | }
|
---|
| 117 | set media(media) {
|
---|
| 118 | throw new _apidomError.UnsupportedOperationError('media setter in Schema class is not not supported.');
|
---|
| 119 | }
|
---|
| 120 |
|
---|
| 121 | /**
|
---|
| 122 | * OpenAPI vocabulary
|
---|
| 123 | */
|
---|
| 124 |
|
---|
| 125 | get nullable() {
|
---|
| 126 | return this.get('nullable');
|
---|
| 127 | }
|
---|
| 128 | set nullable(nullable) {
|
---|
| 129 | this.set('nullable', nullable);
|
---|
| 130 | }
|
---|
| 131 | get discriminator() {
|
---|
| 132 | return this.get('discriminator');
|
---|
| 133 | }
|
---|
| 134 | set discriminator(discriminator) {
|
---|
| 135 | this.set('discriminator', discriminator);
|
---|
| 136 | }
|
---|
| 137 | get writeOnly() {
|
---|
| 138 | return this.get('writeOnly');
|
---|
| 139 | }
|
---|
| 140 | set writeOnly(writeOnly) {
|
---|
| 141 | this.set('writeOnly', writeOnly);
|
---|
| 142 | }
|
---|
| 143 | get xml() {
|
---|
| 144 | return this.get('xml');
|
---|
| 145 | }
|
---|
| 146 | set xml(xml) {
|
---|
| 147 | this.set('xml', xml);
|
---|
| 148 | }
|
---|
| 149 | get externalDocs() {
|
---|
| 150 | return this.get('externalDocs');
|
---|
| 151 | }
|
---|
| 152 | set externalDocs(externalDocs) {
|
---|
| 153 | this.set('externalDocs', externalDocs);
|
---|
| 154 | }
|
---|
| 155 | get example() {
|
---|
| 156 | return this.get('example');
|
---|
| 157 | }
|
---|
| 158 | set example(example) {
|
---|
| 159 | this.set('example', example);
|
---|
| 160 | }
|
---|
| 161 | get deprecated() {
|
---|
| 162 | return this.get('deprecated');
|
---|
| 163 | }
|
---|
| 164 | set deprecated(deprecated) {
|
---|
| 165 | this.set('deprecated', deprecated);
|
---|
| 166 | }
|
---|
| 167 | }
|
---|
| 168 | /* eslint-disable class-methods-use-this */
|
---|
| 169 | var _default = exports.default = Schema; |
---|