@speclynx/apidom-ns-openapi-3-0 4.0.3 → 4.0.4
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.
- package/CHANGELOG.md +6 -0
- package/dist/apidom-ns-openapi-3-0.browser.js +2 -2
- package/dist/apidom-ns-openapi-3-0.browser.min.js +1 -1
- package/package.json +9 -8
- package/src/elements/Callback.ts +0 -13
- package/src/elements/Components.ts +0 -85
- package/src/elements/Contact.ts +0 -42
- package/src/elements/Discriminator.ts +0 -34
- package/src/elements/Encoding.ts +0 -59
- package/src/elements/Example.ts +0 -51
- package/src/elements/ExternalDocumentation.ts +0 -34
- package/src/elements/Header.ts +0 -119
- package/src/elements/Info.ts +0 -70
- package/src/elements/License.ts +0 -34
- package/src/elements/Link.ts +0 -85
- package/src/elements/MediaType.ts +0 -48
- package/src/elements/OAuthFlow.ts +0 -50
- package/src/elements/OAuthFlows.ts +0 -47
- package/src/elements/OpenApi3-0.ts +0 -90
- package/src/elements/Openapi.ts +0 -15
- package/src/elements/Operation.ts +0 -124
- package/src/elements/Parameter.ts +0 -135
- package/src/elements/PathItem.ts +0 -125
- package/src/elements/Paths.ts +0 -13
- package/src/elements/Reference.ts +0 -27
- package/src/elements/RequestBody.ts +0 -46
- package/src/elements/Response.ts +0 -50
- package/src/elements/Responses.ts +0 -24
- package/src/elements/Schema.ts +0 -230
- package/src/elements/SecurityRequirement.ts +0 -13
- package/src/elements/SecurityScheme.ts +0 -84
- package/src/elements/Server.ts +0 -42
- package/src/elements/ServerVariable.ts +0 -43
- package/src/elements/Tag.ts +0 -44
- package/src/elements/Xml.ts +0 -59
- package/src/elements/nces/ComponentsCallbacks.ts +0 -15
- package/src/elements/nces/ComponentsExamples.ts +0 -16
- package/src/elements/nces/ComponentsHeaders.ts +0 -15
- package/src/elements/nces/ComponentsLinks.ts +0 -15
- package/src/elements/nces/ComponentsParameters.ts +0 -16
- package/src/elements/nces/ComponentsRequestBodies.ts +0 -15
- package/src/elements/nces/ComponentsResponses.ts +0 -15
- package/src/elements/nces/ComponentsSchemas.ts +0 -15
- package/src/elements/nces/ComponentsSecuritySchemes.ts +0 -15
- package/src/elements/nces/DiscriminatorMapping.ts +0 -15
- package/src/elements/nces/EncodingHeaders.ts +0 -15
- package/src/elements/nces/HeaderContent.ts +0 -16
- package/src/elements/nces/HeaderExamples.ts +0 -16
- package/src/elements/nces/LinkParameters.ts +0 -15
- package/src/elements/nces/MediaTypeEncoding.ts +0 -15
- package/src/elements/nces/MediaTypeExamples.ts +0 -16
- package/src/elements/nces/OAuthFlowScopes.ts +0 -15
- package/src/elements/nces/OperationCallbacks.ts +0 -15
- package/src/elements/nces/OperationParameters.ts +0 -16
- package/src/elements/nces/OperationSecurity.ts +0 -16
- package/src/elements/nces/OperationServers.ts +0 -16
- package/src/elements/nces/OperationTags.ts +0 -15
- package/src/elements/nces/ParameterContent.ts +0 -16
- package/src/elements/nces/ParameterExamples.ts +0 -16
- package/src/elements/nces/PathItemParameters.ts +0 -16
- package/src/elements/nces/PathItemServers.ts +0 -16
- package/src/elements/nces/RequestBodyContent.ts +0 -16
- package/src/elements/nces/ResponseContent.ts +0 -16
- package/src/elements/nces/ResponseHeaders.ts +0 -15
- package/src/elements/nces/ResponseLinks.ts +0 -15
- package/src/elements/nces/Security.ts +0 -15
- package/src/elements/nces/ServerVariables.ts +0 -15
- package/src/elements/nces/Servers.ts +0 -15
- package/src/elements/nces/Tags.ts +0 -15
- package/src/index.ts +0 -550
- package/src/media-types.ts +0 -52
- package/src/namespace.ts +0 -78
- package/src/predicates.ts +0 -185
- package/src/refractor/index.ts +0 -370
- package/src/refractor/inspect.ts +0 -239
- package/src/refractor/plugins/replace-empty-element.ts +0 -656
- package/src/refractor/predicates.ts +0 -39
- package/src/refractor/specification.ts +0 -557
- package/src/refractor/toolbox.ts +0 -24
- package/src/refractor/visitors/FallbackVisitor.ts +0 -24
- package/src/refractor/visitors/SpecificationExtensionVisitor.ts +0 -22
- package/src/refractor/visitors/SpecificationVisitor.ts +0 -112
- package/src/refractor/visitors/Visitor.ts +0 -47
- package/src/refractor/visitors/generics/AlternatingVisitor.ts +0 -45
- package/src/refractor/visitors/generics/FixedFieldsVisitor.ts +0 -110
- package/src/refractor/visitors/generics/MapVisitor.ts +0 -25
- package/src/refractor/visitors/generics/MixedFieldsVisitor.ts +0 -77
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.ts +0 -99
- package/src/refractor/visitors/open-api-3-0/ContentVisitor.ts +0 -28
- package/src/refractor/visitors/open-api-3-0/ExamplesVisitor.ts +0 -48
- package/src/refractor/visitors/open-api-3-0/OpenapiVisitor.ts +0 -30
- package/src/refractor/visitors/open-api-3-0/ParametersVisitor.ts +0 -47
- package/src/refractor/visitors/open-api-3-0/SecurityVisitor.ts +0 -44
- package/src/refractor/visitors/open-api-3-0/ServersVisitor.ts +0 -40
- package/src/refractor/visitors/open-api-3-0/TagsVisitor.ts +0 -40
- package/src/refractor/visitors/open-api-3-0/bases.ts +0 -82
- package/src/refractor/visitors/open-api-3-0/callback/index.ts +0 -49
- package/src/refractor/visitors/open-api-3-0/components/CallbacksVisitor.ts +0 -45
- package/src/refractor/visitors/open-api-3-0/components/ExamplesVisitor.ts +0 -46
- package/src/refractor/visitors/open-api-3-0/components/HeadersVisitor.ts +0 -53
- package/src/refractor/visitors/open-api-3-0/components/LinksVisitor.ts +0 -45
- package/src/refractor/visitors/open-api-3-0/components/ParametersVisitor.ts +0 -46
- package/src/refractor/visitors/open-api-3-0/components/RequestBodiesVisitor.ts +0 -45
- package/src/refractor/visitors/open-api-3-0/components/ResponsesVisitor.ts +0 -53
- package/src/refractor/visitors/open-api-3-0/components/SchemasVisitor.ts +0 -46
- package/src/refractor/visitors/open-api-3-0/components/SecuritySchemesVisitor.ts +0 -45
- package/src/refractor/visitors/open-api-3-0/components/index.ts +0 -31
- package/src/refractor/visitors/open-api-3-0/contact/index.ts +0 -27
- package/src/refractor/visitors/open-api-3-0/distriminator/MappingVisitor.ts +0 -24
- package/src/refractor/visitors/open-api-3-0/distriminator/index.ts +0 -27
- package/src/refractor/visitors/open-api-3-0/encoding/HeadersVisitor.ts +0 -57
- package/src/refractor/visitors/open-api-3-0/encoding/index.ts +0 -49
- package/src/refractor/visitors/open-api-3-0/example/ExternalValueVisitor.ts +0 -20
- package/src/refractor/visitors/open-api-3-0/example/index.ts +0 -38
- package/src/refractor/visitors/open-api-3-0/external-documentation/index.ts +0 -27
- package/src/refractor/visitors/open-api-3-0/header/ContentVisitor.ts +0 -18
- package/src/refractor/visitors/open-api-3-0/header/ExamplesVisitor.ts +0 -18
- package/src/refractor/visitors/open-api-3-0/header/SchemaVisitor.ts +0 -33
- package/src/refractor/visitors/open-api-3-0/header/index.ts +0 -27
- package/src/refractor/visitors/open-api-3-0/index.ts +0 -39
- package/src/refractor/visitors/open-api-3-0/info/VersionVisitor.ts +0 -21
- package/src/refractor/visitors/open-api-3-0/info/index.ts +0 -27
- package/src/refractor/visitors/open-api-3-0/license/index.ts +0 -27
- package/src/refractor/visitors/open-api-3-0/link/OperationIdVisitor.ts +0 -20
- package/src/refractor/visitors/open-api-3-0/link/OperationRefVisitor.ts +0 -20
- package/src/refractor/visitors/open-api-3-0/link/ParametersVisitor.ts +0 -24
- package/src/refractor/visitors/open-api-3-0/link/index.ts +0 -38
- package/src/refractor/visitors/open-api-3-0/media-type/EncodingVisitor.ts +0 -24
- package/src/refractor/visitors/open-api-3-0/media-type/ExamplesVisitor.ts +0 -18
- package/src/refractor/visitors/open-api-3-0/media-type/SchemaVisitor.ts +0 -33
- package/src/refractor/visitors/open-api-3-0/media-type/index.ts +0 -27
- package/src/refractor/visitors/open-api-3-0/oauth-flow/ScopesVisitor.ts +0 -24
- package/src/refractor/visitors/open-api-3-0/oauth-flow/index.ts +0 -27
- package/src/refractor/visitors/open-api-3-0/oauth-flows/index.ts +0 -27
- package/src/refractor/visitors/open-api-3-0/operation/CallbacksVisitor.ts +0 -45
- package/src/refractor/visitors/open-api-3-0/operation/ParametersVisitor.ts +0 -18
- package/src/refractor/visitors/open-api-3-0/operation/RequestBodyVisitor.ts +0 -39
- package/src/refractor/visitors/open-api-3-0/operation/SecurityVisitor.ts +0 -41
- package/src/refractor/visitors/open-api-3-0/operation/ServersVisitor.ts +0 -18
- package/src/refractor/visitors/open-api-3-0/operation/TagsVisitor.ts +0 -32
- package/src/refractor/visitors/open-api-3-0/operation/index.ts +0 -27
- package/src/refractor/visitors/open-api-3-0/parameter/ContentVisitor.ts +0 -18
- package/src/refractor/visitors/open-api-3-0/parameter/ExamplesVisitor.ts +0 -18
- package/src/refractor/visitors/open-api-3-0/parameter/SchemaVisitor.ts +0 -36
- package/src/refractor/visitors/open-api-3-0/parameter/index.ts +0 -49
- package/src/refractor/visitors/open-api-3-0/path-item/$RefVisitor.ts +0 -20
- package/src/refractor/visitors/open-api-3-0/path-item/ParametersVisitor.ts +0 -18
- package/src/refractor/visitors/open-api-3-0/path-item/ServersVisitor.ts +0 -18
- package/src/refractor/visitors/open-api-3-0/path-item/index.ts +0 -53
- package/src/refractor/visitors/open-api-3-0/paths/index.ts +0 -51
- package/src/refractor/visitors/open-api-3-0/reference/$RefVisitor.ts +0 -20
- package/src/refractor/visitors/open-api-3-0/reference/index.ts +0 -41
- package/src/refractor/visitors/open-api-3-0/request-body/ContentVisitor.ts +0 -18
- package/src/refractor/visitors/open-api-3-0/request-body/index.ts +0 -46
- package/src/refractor/visitors/open-api-3-0/response/ContentVisitor.ts +0 -18
- package/src/refractor/visitors/open-api-3-0/response/HeadersVisitor.ts +0 -57
- package/src/refractor/visitors/open-api-3-0/response/LinksVisitor.ts +0 -45
- package/src/refractor/visitors/open-api-3-0/response/index.ts +0 -57
- package/src/refractor/visitors/open-api-3-0/responses/DefaultVisitor.ts +0 -39
- package/src/refractor/visitors/open-api-3-0/responses/index.ts +0 -64
- package/src/refractor/visitors/open-api-3-0/schema/AllOfVisitor.ts +0 -34
- package/src/refractor/visitors/open-api-3-0/schema/AnyOfVisitor.ts +0 -34
- package/src/refractor/visitors/open-api-3-0/schema/ItemsVisitor.ts +0 -31
- package/src/refractor/visitors/open-api-3-0/schema/OneOfVisitor.ts +0 -34
- package/src/refractor/visitors/open-api-3-0/schema/PropertiesVisitor.ts +0 -34
- package/src/refractor/visitors/open-api-3-0/schema/SchemaOrReferenceVisitor.ts +0 -36
- package/src/refractor/visitors/open-api-3-0/schema/TypeVisitor.ts +0 -26
- package/src/refractor/visitors/open-api-3-0/schema/index.ts +0 -30
- package/src/refractor/visitors/open-api-3-0/security-requirement/index.ts +0 -24
- package/src/refractor/visitors/open-api-3-0/security-scheme/index.ts +0 -27
- package/src/refractor/visitors/open-api-3-0/server/UrlVisitor.ts +0 -20
- package/src/refractor/visitors/open-api-3-0/server/VariablesVisitor.ts +0 -24
- package/src/refractor/visitors/open-api-3-0/server/index.ts +0 -27
- package/src/refractor/visitors/open-api-3-0/server-variable/index.ts +0 -27
- package/src/refractor/visitors/open-api-3-0/tag/index.ts +0 -27
- package/src/refractor/visitors/open-api-3-0/xml/index.ts +0 -27
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
StringElement,
|
|
3
|
-
ObjectElement,
|
|
4
|
-
BooleanElement,
|
|
5
|
-
type Attributes,
|
|
6
|
-
type Meta,
|
|
7
|
-
} from '@speclynx/apidom-datamodel';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
class RequestBody extends ObjectElement {
|
|
13
|
-
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
14
|
-
super(content, meta, attributes);
|
|
15
|
-
this.element = 'requestBody';
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
get description(): StringElement | undefined {
|
|
19
|
-
return this.get('description') as StringElement | undefined;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
set description(description: StringElement | undefined) {
|
|
23
|
-
this.set('description', description);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
get contentField(): ObjectElement | undefined {
|
|
27
|
-
return this.get('content') as ObjectElement | undefined;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
set contentField(content: ObjectElement | undefined) {
|
|
31
|
-
this.set('content', content);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
get required(): BooleanElement {
|
|
35
|
-
if (this.hasKey('required')) {
|
|
36
|
-
return this.get('required') as BooleanElement;
|
|
37
|
-
}
|
|
38
|
-
return new BooleanElement(false);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
set required(required: BooleanElement) {
|
|
42
|
-
this.set('required', required);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export default RequestBody;
|
package/src/elements/Response.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ObjectElement,
|
|
3
|
-
StringElement,
|
|
4
|
-
type Attributes,
|
|
5
|
-
type Meta,
|
|
6
|
-
} from '@speclynx/apidom-datamodel';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @public
|
|
10
|
-
*/
|
|
11
|
-
class Response extends ObjectElement {
|
|
12
|
-
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
13
|
-
super(content, meta, attributes);
|
|
14
|
-
this.element = 'response';
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
get description(): StringElement | undefined {
|
|
18
|
-
return this.get('description') as StringElement | undefined;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
set description(description: StringElement | undefined) {
|
|
22
|
-
this.set('description', description);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
get headers(): ObjectElement | undefined {
|
|
26
|
-
return this.get('headers') as ObjectElement | undefined;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
set headers(headers: ObjectElement | undefined) {
|
|
30
|
-
this.set('headers', headers);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
get contentField(): ObjectElement | undefined {
|
|
34
|
-
return this.get('content') as ObjectElement | undefined;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
set contentField(content: ObjectElement | undefined) {
|
|
38
|
-
this.set('content', content);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
get linksField(): ObjectElement | undefined {
|
|
42
|
-
return this.get('links') as ObjectElement | undefined;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
set linksField(links: ObjectElement | undefined) {
|
|
46
|
-
this.set('links', links);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export default Response;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ObjectElement, type Attributes, type Meta } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
import ResponseElement from './Response.ts';
|
|
4
|
-
import ReferenceElement from './Reference.ts';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class Responses extends ObjectElement {
|
|
10
|
-
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'responses';
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
get default(): ResponseElement | ReferenceElement | undefined {
|
|
16
|
-
return this.get('default') as ResponseElement | ReferenceElement | undefined;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
set default(defaultValue: ResponseElement | ReferenceElement | undefined) {
|
|
20
|
-
this.set('default', defaultValue);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default Responses;
|
package/src/elements/Schema.ts
DELETED
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
import { UnsupportedOperationError } from '@speclynx/apidom-error';
|
|
2
|
-
import {
|
|
3
|
-
StringElement,
|
|
4
|
-
BooleanElement,
|
|
5
|
-
Element,
|
|
6
|
-
ObjectElement,
|
|
7
|
-
ArrayElement,
|
|
8
|
-
type Attributes,
|
|
9
|
-
type Meta,
|
|
10
|
-
} from '@speclynx/apidom-datamodel';
|
|
11
|
-
import {
|
|
12
|
-
JSONSchemaElement,
|
|
13
|
-
MediaElement,
|
|
14
|
-
LinkDescriptionElement,
|
|
15
|
-
} from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
16
|
-
|
|
17
|
-
import ReferenceElement from './Reference.ts';
|
|
18
|
-
import DiscriminatorElement from './Discriminator.ts';
|
|
19
|
-
import XmlElement from './Xml.ts';
|
|
20
|
-
import ExternalDocumentationElement from './ExternalDocumentation.ts';
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @public
|
|
24
|
-
*/
|
|
25
|
-
class Schema extends JSONSchemaElement {
|
|
26
|
-
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
27
|
-
super(content, meta, attributes);
|
|
28
|
-
this.element = 'schema';
|
|
29
|
-
this.classes.push('json-schema-draft-4');
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Core vocabulary
|
|
34
|
-
*
|
|
35
|
-
* URI: https://tools.ietf.org/html/draft-wright-json-schema-00
|
|
36
|
-
*/
|
|
37
|
-
get idField(): StringElement | undefined {
|
|
38
|
-
throw new UnsupportedOperationError('idField getter in Schema class is not not supported.');
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
set idField(idField: StringElement | undefined) {
|
|
42
|
-
throw new UnsupportedOperationError('idField setter in Schema class is not not supported.');
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
get $schema(): StringElement | undefined {
|
|
46
|
-
throw new UnsupportedOperationError('$schema getter in Schema class is not not supported.');
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
set $schema($schema: StringElement | undefined) {
|
|
50
|
-
throw new UnsupportedOperationError('$schema setter in Schema class is not not supported.');
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Validation keywords for arrays
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
|
-
get additionalItems(): this | ReferenceElement | BooleanElement | undefined {
|
|
58
|
-
return this.get('additionalItems') as this | ReferenceElement | BooleanElement | undefined;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
set additionalItems(additionalItems: this | ReferenceElement | BooleanElement | undefined) {
|
|
62
|
-
this.set('additionalItems', additionalItems);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
override get itemsField(): this | ReferenceElement | undefined {
|
|
66
|
-
return this.get('items') as this | ReferenceElement | undefined;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
override set itemsField(items: this | ReferenceElement | undefined) {
|
|
70
|
-
this.set('items', items);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Validation keywords for objects
|
|
75
|
-
*/
|
|
76
|
-
|
|
77
|
-
get additionalProperties(): this | ReferenceElement | BooleanElement | undefined {
|
|
78
|
-
return this.get('additionalProperties') as this | ReferenceElement | BooleanElement | undefined;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
set additionalProperties(
|
|
82
|
-
additionalProperties: this | ReferenceElement | BooleanElement | undefined,
|
|
83
|
-
) {
|
|
84
|
-
this.set('additionalProperties', additionalProperties);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
get patternProperties(): ObjectElement | undefined {
|
|
88
|
-
throw new UnsupportedOperationError(
|
|
89
|
-
'patternProperties getter in Schema class is not not supported.',
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
set patternProperties(patternProperties: ObjectElement | undefined) {
|
|
94
|
-
throw new UnsupportedOperationError(
|
|
95
|
-
'patternProperties setter in Schema class is not not supported.',
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
get dependencies(): ObjectElement | undefined {
|
|
100
|
-
throw new UnsupportedOperationError(
|
|
101
|
-
'dependencies getter in Schema class is not not supported.',
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
set dependencies(dependencies: ObjectElement | undefined) {
|
|
106
|
-
throw new UnsupportedOperationError(
|
|
107
|
-
'dependencies setter in Schema class is not not supported.',
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Validation keywords for any instance type
|
|
113
|
-
*/
|
|
114
|
-
|
|
115
|
-
get type(): StringElement | undefined {
|
|
116
|
-
return this.get('type') as StringElement | undefined;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
set type(type: StringElement | undefined) {
|
|
120
|
-
this.set('type', type);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
get not(): this | ReferenceElement | undefined {
|
|
124
|
-
return this.get('not') as this | ReferenceElement | undefined;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
set not(not: this | ReferenceElement | undefined) {
|
|
128
|
-
this.set('not', not);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
get definitions(): ObjectElement | undefined {
|
|
132
|
-
throw new UnsupportedOperationError('definitions getter in Schema class is not not supported.');
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
set definitions(definitions: ObjectElement | undefined) {
|
|
136
|
-
throw new UnsupportedOperationError('definitions setter in Schema class is not not supported.');
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* JSON Hyper-Schema
|
|
141
|
-
*
|
|
142
|
-
* URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
|
|
143
|
-
*/
|
|
144
|
-
|
|
145
|
-
get base(): StringElement | undefined {
|
|
146
|
-
throw new UnsupportedOperationError('base getter in Schema class is not not supported.');
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
set base(base: StringElement | undefined) {
|
|
150
|
-
throw new UnsupportedOperationError('base setter in Schema class is not not supported.');
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
override get linksField(): ArrayElement<LinkDescriptionElement> | undefined {
|
|
154
|
-
throw new UnsupportedOperationError('linksField getter in Schema class is not not supported.');
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
override set linksField(links: ArrayElement<LinkDescriptionElement> | undefined) {
|
|
158
|
-
throw new UnsupportedOperationError('linksField setter in Schema class is not not supported.');
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
get media(): MediaElement | undefined {
|
|
162
|
-
throw new UnsupportedOperationError('media getter in Schema class is not not supported.');
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
set media(media: MediaElement | undefined) {
|
|
166
|
-
throw new UnsupportedOperationError('media setter in Schema class is not not supported.');
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* OpenAPI vocabulary
|
|
171
|
-
*/
|
|
172
|
-
|
|
173
|
-
get nullable(): BooleanElement | undefined {
|
|
174
|
-
return this.get('nullable') as BooleanElement | undefined;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
set nullable(nullable: BooleanElement | undefined) {
|
|
178
|
-
this.set('nullable', nullable);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
get discriminator(): DiscriminatorElement | undefined {
|
|
182
|
-
return this.get('discriminator') as DiscriminatorElement | undefined;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
set discriminator(discriminator: DiscriminatorElement | undefined) {
|
|
186
|
-
this.set('discriminator', discriminator);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
get writeOnly(): BooleanElement | undefined {
|
|
190
|
-
return this.get('writeOnly') as BooleanElement | undefined;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
set writeOnly(writeOnly: BooleanElement | undefined) {
|
|
194
|
-
this.set('writeOnly', writeOnly);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
get xml(): XmlElement | undefined {
|
|
198
|
-
return this.get('xml') as XmlElement | undefined;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
set xml(xml: XmlElement | undefined) {
|
|
202
|
-
this.set('xml', xml);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
get externalDocs(): ExternalDocumentationElement | undefined {
|
|
206
|
-
return this.get('externalDocs') as ExternalDocumentationElement | undefined;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
set externalDocs(externalDocs: ExternalDocumentationElement | undefined) {
|
|
210
|
-
this.set('externalDocs', externalDocs);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
get example(): Element | undefined {
|
|
214
|
-
return this.get('example') as Element | undefined;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
set example(example: Element | undefined) {
|
|
218
|
-
this.set('example', example);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
get deprecated(): BooleanElement | undefined {
|
|
222
|
-
return this.get('deprecated') as BooleanElement | undefined;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
set deprecated(deprecated: BooleanElement | undefined) {
|
|
226
|
-
this.set('deprecated', deprecated);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
export default Schema;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ObjectElement, type Attributes, type Meta } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class SecurityRequirement extends ObjectElement {
|
|
7
|
-
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
8
|
-
super(content, meta, attributes);
|
|
9
|
-
this.element = 'securityRequirement';
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export default SecurityRequirement;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ObjectElement,
|
|
3
|
-
StringElement,
|
|
4
|
-
type Attributes,
|
|
5
|
-
type Meta,
|
|
6
|
-
} from '@speclynx/apidom-datamodel';
|
|
7
|
-
|
|
8
|
-
import OAuthFlowsElement from './OAuthFlows.ts';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
|
-
class SecurityScheme extends ObjectElement {
|
|
14
|
-
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
15
|
-
super(content, meta, attributes);
|
|
16
|
-
this.element = 'securityScheme';
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
get type(): StringElement | undefined {
|
|
20
|
-
return this.get('type') as StringElement | undefined;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
set type(type: StringElement | undefined) {
|
|
24
|
-
this.set('type', type);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
get description(): StringElement | undefined {
|
|
28
|
-
return this.get('description') as StringElement | undefined;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
set description(description: StringElement | undefined) {
|
|
32
|
-
this.set('description', description);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
get name(): StringElement | undefined {
|
|
36
|
-
return this.get('name') as StringElement | undefined;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
set name(name: StringElement | undefined) {
|
|
40
|
-
this.set('name', name);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
get in(): StringElement | undefined {
|
|
44
|
-
return this.get('in') as StringElement | undefined;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
set in(inVal: StringElement | undefined) {
|
|
48
|
-
this.set('in', inVal);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
get scheme(): StringElement | undefined {
|
|
52
|
-
return this.get('scheme') as StringElement | undefined;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
set scheme(scheme: StringElement | undefined) {
|
|
56
|
-
this.set('scheme', scheme);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
get bearerFormat(): StringElement | undefined {
|
|
60
|
-
return this.get('bearerFormat') as StringElement | undefined;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
set bearerFormat(bearerFormat: StringElement | undefined) {
|
|
64
|
-
this.set('bearerFormat', bearerFormat);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
get flows(): OAuthFlowsElement | undefined {
|
|
68
|
-
return this.get('flows') as OAuthFlowsElement | undefined;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
set flows(flows: OAuthFlowsElement | undefined) {
|
|
72
|
-
this.set('flows', flows);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
get openIdConnectUrl(): StringElement | undefined {
|
|
76
|
-
return this.get('openIdConnectUrl') as StringElement | undefined;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
set openIdConnectUrl(openIdConnectUrl: StringElement | undefined) {
|
|
80
|
-
this.set('openIdConnectUrl', openIdConnectUrl);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export default SecurityScheme;
|
package/src/elements/Server.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ObjectElement,
|
|
3
|
-
StringElement,
|
|
4
|
-
type Attributes,
|
|
5
|
-
type Meta,
|
|
6
|
-
} from '@speclynx/apidom-datamodel';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @public
|
|
10
|
-
*/
|
|
11
|
-
class Server extends ObjectElement {
|
|
12
|
-
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
13
|
-
super(content, meta, attributes);
|
|
14
|
-
this.element = 'server';
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
get url(): StringElement | undefined {
|
|
18
|
-
return this.get('url') as StringElement | undefined;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
set url(url: StringElement | undefined) {
|
|
22
|
-
this.set('url', url);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
get description(): StringElement | undefined {
|
|
26
|
-
return this.get('description') as StringElement | undefined;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
set description(description: StringElement | undefined) {
|
|
30
|
-
this.set('description', description);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
get variables(): ObjectElement | undefined {
|
|
34
|
-
return this.get('variables') as ObjectElement | undefined;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
set variables(variables: ObjectElement | undefined) {
|
|
38
|
-
this.set('variables', variables);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export default Server;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ObjectElement,
|
|
3
|
-
ArrayElement,
|
|
4
|
-
StringElement,
|
|
5
|
-
type Attributes,
|
|
6
|
-
type Meta,
|
|
7
|
-
} from '@speclynx/apidom-datamodel';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
class ServerVariable extends ObjectElement {
|
|
13
|
-
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
14
|
-
super(content, meta, attributes);
|
|
15
|
-
this.element = 'serverVariable';
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
get enum(): ArrayElement | undefined {
|
|
19
|
-
return this.get('enum') as ArrayElement | undefined;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
set enum(value: ArrayElement | undefined) {
|
|
23
|
-
this.set('enum', value);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
get default(): StringElement | undefined {
|
|
27
|
-
return this.get('default') as StringElement | undefined;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
set default(value: StringElement | undefined) {
|
|
31
|
-
this.set('default', value);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
get description(): StringElement | undefined {
|
|
35
|
-
return this.get('description') as StringElement | undefined;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
set description(description: StringElement | undefined) {
|
|
39
|
-
this.set('description', description);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export default ServerVariable;
|
package/src/elements/Tag.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ObjectElement,
|
|
3
|
-
StringElement,
|
|
4
|
-
type Attributes,
|
|
5
|
-
type Meta,
|
|
6
|
-
} from '@speclynx/apidom-datamodel';
|
|
7
|
-
|
|
8
|
-
import ExternalDocumentationElement from './ExternalDocumentation.ts';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
|
-
class Tag extends ObjectElement {
|
|
14
|
-
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
15
|
-
super(content, meta, attributes);
|
|
16
|
-
this.element = 'tag';
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
get name(): StringElement | undefined {
|
|
20
|
-
return this.get('name') as StringElement | undefined;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
set name(name: StringElement | undefined) {
|
|
24
|
-
this.set('name', name);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
get description(): StringElement | undefined {
|
|
28
|
-
return this.get('description') as StringElement | undefined;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
set description(description: StringElement | undefined) {
|
|
32
|
-
this.set('description', description);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
get externalDocs(): ExternalDocumentationElement | undefined {
|
|
36
|
-
return this.get('externalDocs') as ExternalDocumentationElement | undefined;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
set externalDocs(externalDocs: ExternalDocumentationElement | undefined) {
|
|
40
|
-
this.set('externalDocs', externalDocs);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export default Tag;
|
package/src/elements/Xml.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
StringElement,
|
|
3
|
-
ObjectElement,
|
|
4
|
-
BooleanElement,
|
|
5
|
-
type Attributes,
|
|
6
|
-
type Meta,
|
|
7
|
-
} from '@speclynx/apidom-datamodel';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
class Xml extends ObjectElement {
|
|
13
|
-
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
14
|
-
super(content, meta, attributes);
|
|
15
|
-
this.element = 'xml';
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
get name(): StringElement | undefined {
|
|
19
|
-
return this.get('name') as StringElement | undefined;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
set name(name: StringElement | undefined) {
|
|
23
|
-
this.set('name', name);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
get namespace(): StringElement | undefined {
|
|
27
|
-
return this.get('namespace') as StringElement | undefined;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
set namespace(namespace: StringElement | undefined) {
|
|
31
|
-
this.set('namespace', namespace);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
get prefix(): StringElement | undefined {
|
|
35
|
-
return this.get('prefix') as StringElement | undefined;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
set prefix(prefix: StringElement | undefined) {
|
|
39
|
-
this.set('prefix', prefix);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
get attribute(): BooleanElement | undefined {
|
|
43
|
-
return this.get('attribute') as BooleanElement | undefined;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
set attribute(attribute: BooleanElement | undefined) {
|
|
47
|
-
this.set('attribute', attribute);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
get wrapped(): BooleanElement | undefined {
|
|
51
|
-
return this.get('wrapped') as BooleanElement | undefined;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
set wrapped(wrapped: BooleanElement | undefined) {
|
|
55
|
-
this.set('wrapped', wrapped);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export default Xml;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ObjectElement, type Attributes, type Meta } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class ComponentsCallbacks extends ObjectElement {
|
|
7
|
-
static primaryClass = 'components-callbacks';
|
|
8
|
-
|
|
9
|
-
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
10
|
-
super(content, meta, attributes);
|
|
11
|
-
this.classes.push(ComponentsCallbacks.primaryClass);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export default ComponentsCallbacks;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ObjectElement, type Attributes, type Meta } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class ComponentsExamples extends ObjectElement {
|
|
7
|
-
static primaryClass = 'components-examples';
|
|
8
|
-
|
|
9
|
-
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
10
|
-
super(content, meta, attributes);
|
|
11
|
-
this.classes.push(ComponentsExamples.primaryClass);
|
|
12
|
-
this.classes.push('examples');
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default ComponentsExamples;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ObjectElement, type Attributes, type Meta } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class ComponentsHeaders extends ObjectElement {
|
|
7
|
-
static primaryClass = 'components-headers';
|
|
8
|
-
|
|
9
|
-
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
10
|
-
super(content, meta, attributes);
|
|
11
|
-
this.classes.push(ComponentsHeaders.primaryClass);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export default ComponentsHeaders;
|