@speclynx/apidom-ns-openapi-3-1 4.0.3 → 4.0.5

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.
Files changed (99) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/apidom-ns-openapi-3-1.browser.js +34 -10
  3. package/dist/apidom-ns-openapi-3-1.browser.min.js +1 -1
  4. package/package.json +10 -9
  5. package/src/elements/Callback.ts +0 -8
  6. package/src/elements/Components.ts +0 -17
  7. package/src/elements/Contact.ts +0 -8
  8. package/src/elements/Discriminator.ts +0 -8
  9. package/src/elements/Encoding.ts +0 -8
  10. package/src/elements/Example.ts +0 -8
  11. package/src/elements/ExternalDocumentation.ts +0 -8
  12. package/src/elements/Header.ts +0 -18
  13. package/src/elements/Info.ts +0 -27
  14. package/src/elements/JsonSchemaDialect.ts +0 -15
  15. package/src/elements/License.ts +0 -17
  16. package/src/elements/Link.ts +0 -8
  17. package/src/elements/MediaType.ts +0 -18
  18. package/src/elements/OAuthFlow.ts +0 -8
  19. package/src/elements/OAuthFlows.ts +0 -8
  20. package/src/elements/OpenApi3-1.ts +0 -107
  21. package/src/elements/Openapi.ts +0 -8
  22. package/src/elements/Operation.ts +0 -19
  23. package/src/elements/Parameter.ts +0 -18
  24. package/src/elements/PathItem.ts +0 -74
  25. package/src/elements/Paths.ts +0 -8
  26. package/src/elements/Reference.ts +0 -29
  27. package/src/elements/RequestBody.ts +0 -8
  28. package/src/elements/Response.ts +0 -8
  29. package/src/elements/Responses.ts +0 -8
  30. package/src/elements/Schema.ts +0 -59
  31. package/src/elements/SecurityRequirement.ts +0 -8
  32. package/src/elements/SecurityScheme.ts +0 -8
  33. package/src/elements/Server.ts +0 -8
  34. package/src/elements/ServerVariable.ts +0 -8
  35. package/src/elements/Tag.ts +0 -8
  36. package/src/elements/Xml.ts +0 -8
  37. package/src/elements/nces/ComponentsPathItems.ts +0 -15
  38. package/src/elements/nces/Webhooks.ts +0 -15
  39. package/src/index.ts +0 -592
  40. package/src/media-types.ts +0 -46
  41. package/src/namespace.ts +0 -80
  42. package/src/predicates.ts +0 -229
  43. package/src/refractor/index.ts +0 -380
  44. package/src/refractor/inspect.ts +0 -241
  45. package/src/refractor/plugins/normalize-header-examples/NormalizeStorage.ts +0 -53
  46. package/src/refractor/plugins/normalize-header-examples/index.ts +0 -125
  47. package/src/refractor/plugins/normalize-operation-ids.ts +0 -198
  48. package/src/refractor/plugins/normalize-parameter-examples.ts +0 -128
  49. package/src/refractor/plugins/normalize-parameters.ts +0 -136
  50. package/src/refractor/plugins/normalize-security-requirements.ts +0 -87
  51. package/src/refractor/plugins/normalize-servers.ts +0 -144
  52. package/src/refractor/plugins/replace-empty-element.ts +0 -726
  53. package/src/refractor/predicates.ts +0 -39
  54. package/src/refractor/specification.ts +0 -594
  55. package/src/refractor/toolbox.ts +0 -70
  56. package/src/refractor/visitors/open-api-3-1/JsonSchemaDialectVisitor.ts +0 -32
  57. package/src/refractor/visitors/open-api-3-1/OpenapiVisitor.ts +0 -30
  58. package/src/refractor/visitors/open-api-3-1/WebhooksVisitor.ts +0 -57
  59. package/src/refractor/visitors/open-api-3-1/bases.ts +0 -66
  60. package/src/refractor/visitors/open-api-3-1/callback/index.ts +0 -56
  61. package/src/refractor/visitors/open-api-3-1/components/PathItemsVisitor.ts +0 -45
  62. package/src/refractor/visitors/open-api-3-1/components/SchemasVisitor.ts +0 -26
  63. package/src/refractor/visitors/open-api-3-1/components/index.ts +0 -29
  64. package/src/refractor/visitors/open-api-3-1/contact/index.ts +0 -29
  65. package/src/refractor/visitors/open-api-3-1/distriminator/index.ts +0 -32
  66. package/src/refractor/visitors/open-api-3-1/encoding/index.ts +0 -29
  67. package/src/refractor/visitors/open-api-3-1/example/index.ts +0 -29
  68. package/src/refractor/visitors/open-api-3-1/external-documentation/index.ts +0 -29
  69. package/src/refractor/visitors/open-api-3-1/header/index.ts +0 -29
  70. package/src/refractor/visitors/open-api-3-1/index.ts +0 -52
  71. package/src/refractor/visitors/open-api-3-1/info/index.ts +0 -29
  72. package/src/refractor/visitors/open-api-3-1/license/index.ts +0 -29
  73. package/src/refractor/visitors/open-api-3-1/link/index.ts +0 -29
  74. package/src/refractor/visitors/open-api-3-1/media-type/index.ts +0 -29
  75. package/src/refractor/visitors/open-api-3-1/oauth-flow/index.ts +0 -29
  76. package/src/refractor/visitors/open-api-3-1/oauth-flows/index.ts +0 -29
  77. package/src/refractor/visitors/open-api-3-1/operation/index.ts +0 -29
  78. package/src/refractor/visitors/open-api-3-1/parameter/index.ts +0 -29
  79. package/src/refractor/visitors/open-api-3-1/path-item/index.ts +0 -29
  80. package/src/refractor/visitors/open-api-3-1/paths/index.ts +0 -29
  81. package/src/refractor/visitors/open-api-3-1/reference/index.ts +0 -29
  82. package/src/refractor/visitors/open-api-3-1/request-body/index.ts +0 -29
  83. package/src/refractor/visitors/open-api-3-1/response/index.ts +0 -29
  84. package/src/refractor/visitors/open-api-3-1/responses/index.ts +0 -29
  85. package/src/refractor/visitors/open-api-3-1/schema/$defsVisitor.ts +0 -21
  86. package/src/refractor/visitors/open-api-3-1/schema/AllOfVisitor.ts +0 -18
  87. package/src/refractor/visitors/open-api-3-1/schema/AnyOfVisitor.ts +0 -18
  88. package/src/refractor/visitors/open-api-3-1/schema/DependentSchemasVisitor.ts +0 -18
  89. package/src/refractor/visitors/open-api-3-1/schema/OneOfVisitor.ts +0 -18
  90. package/src/refractor/visitors/open-api-3-1/schema/PatternPropertiesVisitor.ts +0 -18
  91. package/src/refractor/visitors/open-api-3-1/schema/PrefixItemsVisitor.ts +0 -18
  92. package/src/refractor/visitors/open-api-3-1/schema/PropertiesVisitor.ts +0 -18
  93. package/src/refractor/visitors/open-api-3-1/schema/index.ts +0 -88
  94. package/src/refractor/visitors/open-api-3-1/security-requirement/index.ts +0 -29
  95. package/src/refractor/visitors/open-api-3-1/security-scheme/index.ts +0 -29
  96. package/src/refractor/visitors/open-api-3-1/server/index.ts +0 -29
  97. package/src/refractor/visitors/open-api-3-1/server-variable/index.ts +0 -29
  98. package/src/refractor/visitors/open-api-3-1/tag/index.ts +0 -29
  99. package/src/refractor/visitors/open-api-3-1/xml/index.ts +0 -29
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@speclynx/apidom-ns-openapi-3-1",
3
- "version": "4.0.3",
3
+ "version": "4.0.5",
4
4
  "description": "OpenAPI 3.1.x namespace for ApiDOM.",
5
5
  "keywords": [
6
6
  "apidom",
@@ -60,18 +60,19 @@
60
60
  "license": "Apache-2.0",
61
61
  "dependencies": {
62
62
  "@babel/runtime-corejs3": "^7.28.4",
63
- "@speclynx/apidom-core": "4.0.3",
64
- "@speclynx/apidom-datamodel": "4.0.3",
65
- "@speclynx/apidom-json-pointer": "4.0.3",
66
- "@speclynx/apidom-ns-json-schema-2020-12": "4.0.3",
67
- "@speclynx/apidom-ns-openapi-3-0": "4.0.3",
68
- "@speclynx/apidom-traverse": "4.0.3",
63
+ "@speclynx/apidom-core": "4.0.5",
64
+ "@speclynx/apidom-datamodel": "4.0.5",
65
+ "@speclynx/apidom-json-pointer": "4.0.5",
66
+ "@speclynx/apidom-ns-json-schema-2020-12": "4.0.5",
67
+ "@speclynx/apidom-ns-openapi-3-0": "4.0.5",
68
+ "@speclynx/apidom-traverse": "4.0.5",
69
69
  "ramda": "~0.32.0",
70
70
  "ramda-adjunct": "^6.0.0",
71
71
  "ts-mixer": "^6.0.4"
72
72
  },
73
73
  "files": [
74
- "src/",
74
+ "src/**/*.mjs",
75
+ "src/**/*.cjs",
75
76
  "dist/",
76
77
  "types/apidom-ns-openapi-3-1.d.ts",
77
78
  "LICENSES",
@@ -79,5 +80,5 @@
79
80
  "README.md",
80
81
  "CHANGELOG.md"
81
82
  ],
82
- "gitHead": "6ccfa09c02232516215e7de3ead276641957e626"
83
+ "gitHead": "5a85d2a832eeefb07d03760faa391b457447e966"
83
84
  }
@@ -1,8 +0,0 @@
1
- import { CallbackElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- /**
4
- * @public
5
- */
6
- class Callback extends CallbackElement {}
7
-
8
- export default Callback;
@@ -1,17 +0,0 @@
1
- import { ObjectElement } from '@speclynx/apidom-datamodel';
2
- import { ComponentsElement } from '@speclynx/apidom-ns-openapi-3-0';
3
-
4
- /**
5
- * @public
6
- */
7
- class Components extends ComponentsElement {
8
- get pathItems(): ObjectElement | undefined {
9
- return this.get('pathItems') as ObjectElement | undefined;
10
- }
11
-
12
- set pathItems(pathItems: ObjectElement | undefined) {
13
- this.set('pathItems', pathItems);
14
- }
15
- }
16
-
17
- export default Components;
@@ -1,8 +0,0 @@
1
- import { ContactElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- /**
4
- * @public
5
- */
6
- class Contact extends ContactElement {}
7
-
8
- export default Contact;
@@ -1,8 +0,0 @@
1
- import { DiscriminatorElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- /**
4
- * @public
5
- */
6
- class Discriminator extends DiscriminatorElement {}
7
-
8
- export default Discriminator;
@@ -1,8 +0,0 @@
1
- import { EncodingElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- /**
4
- * @public
5
- */
6
- class Encoding extends EncodingElement {}
7
-
8
- export default Encoding;
@@ -1,8 +0,0 @@
1
- import { ExampleElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- /**
4
- * @public
5
- */
6
- class Example extends ExampleElement {}
7
-
8
- export default Example;
@@ -1,8 +0,0 @@
1
- import { ExternalDocumentationElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- /**
4
- * @public
5
- */
6
- class ExternalDocumentation extends ExternalDocumentationElement {}
7
-
8
- export default ExternalDocumentation;
@@ -1,18 +0,0 @@
1
- import { HeaderElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- import SchemaElement from './Schema.ts';
4
-
5
- /**
6
- * @public
7
- */
8
- class Header extends HeaderElement {
9
- get schema(): SchemaElement | undefined {
10
- return this.get('schema') as SchemaElement | undefined;
11
- }
12
-
13
- set schema(schema: SchemaElement | undefined) {
14
- this.set('schema', schema);
15
- }
16
- }
17
-
18
- export default Header;
@@ -1,27 +0,0 @@
1
- import { StringElement } from '@speclynx/apidom-datamodel';
2
- import { InfoElement } from '@speclynx/apidom-ns-openapi-3-0';
3
-
4
- import LicenseElement from './License.ts';
5
-
6
- /**
7
- * @public
8
- */
9
- class Info extends InfoElement {
10
- get license(): LicenseElement | undefined {
11
- return this.get('license') as LicenseElement | undefined;
12
- }
13
-
14
- set license(licenseElement: LicenseElement | undefined) {
15
- this.set('license', licenseElement);
16
- }
17
-
18
- get summary(): StringElement | undefined {
19
- return this.get('summary') as StringElement | undefined;
20
- }
21
-
22
- set summary(summary: StringElement | undefined) {
23
- this.set('summary', summary);
24
- }
25
- }
26
-
27
- export default Info;
@@ -1,15 +0,0 @@
1
- import { StringElement, type Attributes, type Meta } from '@speclynx/apidom-datamodel';
2
-
3
- /**
4
- * @public
5
- */
6
- class JsonSchemaDialect extends StringElement {
7
- static default = new JsonSchemaDialect('https://spec.openapis.org/oas/3.1/dialect/base');
8
-
9
- constructor(content?: string, meta?: Meta, attributes?: Attributes) {
10
- super(content, meta, attributes);
11
- this.element = 'jsonSchemaDialect';
12
- }
13
- }
14
-
15
- export default JsonSchemaDialect;
@@ -1,17 +0,0 @@
1
- import { StringElement } from '@speclynx/apidom-datamodel';
2
- import { LicenseElement } from '@speclynx/apidom-ns-openapi-3-0';
3
-
4
- /**
5
- * @public
6
- */
7
- class License extends LicenseElement {
8
- get identifier(): StringElement | undefined {
9
- return this.get('identifier') as StringElement | undefined;
10
- }
11
-
12
- set identifier(name: StringElement | undefined) {
13
- this.set('identifier', name);
14
- }
15
- }
16
-
17
- export default License;
@@ -1,8 +0,0 @@
1
- import { LinkElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- /**
4
- * @public
5
- */
6
- class Link extends LinkElement {}
7
-
8
- export default Link;
@@ -1,18 +0,0 @@
1
- import { MediaTypeElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- import SchemaElement from './Schema.ts';
4
-
5
- /**
6
- * @public
7
- */
8
- class MediaType extends MediaTypeElement {
9
- get schema(): SchemaElement | undefined {
10
- return this.get('schema') as SchemaElement | undefined;
11
- }
12
-
13
- set schema(schema: SchemaElement | undefined) {
14
- this.set('schema', schema);
15
- }
16
- }
17
-
18
- export default MediaType;
@@ -1,8 +0,0 @@
1
- import { OAuthFlowElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- /**
4
- * @public
5
- */
6
- class OAuthFlow extends OAuthFlowElement {}
7
-
8
- export default OAuthFlow;
@@ -1,8 +0,0 @@
1
- import { OAuthFlowsElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- /**
4
- * @public
5
- */
6
- class OAuthFlows extends OAuthFlowsElement {}
7
-
8
- export default OAuthFlows;
@@ -1,107 +0,0 @@
1
- import {
2
- ObjectElement,
3
- ArrayElement,
4
- StringElement,
5
- type Attributes,
6
- type Meta,
7
- } from '@speclynx/apidom-datamodel';
8
-
9
- import OpenapiElement from './Openapi.ts';
10
- import InfoElement from './Info.ts';
11
- import ComponentsElement from './Components.ts';
12
- import PathsElement from './Paths.ts';
13
- import ExternalDocumentationElement from './ExternalDocumentation.ts';
14
-
15
- /**
16
- * @public
17
- */
18
-
19
- class OpenApi3_1 extends ObjectElement {
20
- constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
21
- super(content, meta, attributes);
22
- this.element = 'openApi3_1';
23
- this.classes.push('api');
24
- }
25
-
26
- get openapi(): OpenapiElement | undefined {
27
- return this.get('openapi') as OpenapiElement | undefined;
28
- }
29
-
30
- set openapi(openapi: OpenapiElement | undefined) {
31
- this.set('openapi', openapi);
32
- }
33
-
34
- get info(): InfoElement | undefined {
35
- return this.get('info') as InfoElement | undefined;
36
- }
37
-
38
- set info(info: InfoElement | undefined) {
39
- this.set('info', info);
40
- }
41
-
42
- get jsonSchemaDialect(): StringElement | undefined {
43
- return this.get('jsonSchemaDialect') as StringElement | undefined;
44
- }
45
-
46
- set jsonSchemaDialect(jsonSchemaDialect: StringElement | undefined) {
47
- this.set('jsonSchemaDialect', jsonSchemaDialect);
48
- }
49
-
50
- get servers(): ArrayElement | undefined {
51
- return this.get('servers') as ArrayElement | undefined;
52
- }
53
-
54
- set servers(servers: ArrayElement | undefined) {
55
- this.set('servers', servers);
56
- }
57
-
58
- get paths(): PathsElement | undefined {
59
- return this.get('paths') as PathsElement | undefined;
60
- }
61
-
62
- set paths(paths: PathsElement | undefined) {
63
- this.set('paths', paths);
64
- }
65
-
66
- get components(): ComponentsElement | undefined {
67
- return this.get('components') as ComponentsElement | undefined;
68
- }
69
-
70
- set components(components: ComponentsElement | undefined) {
71
- this.set('components', components);
72
- }
73
-
74
- get security(): ArrayElement | undefined {
75
- return this.get('security') as ArrayElement | undefined;
76
- }
77
-
78
- set security(security: ArrayElement | undefined) {
79
- this.set('security', security);
80
- }
81
-
82
- get tags(): ArrayElement | undefined {
83
- return this.get('tags') as ArrayElement | undefined;
84
- }
85
-
86
- set tags(tags: ArrayElement | undefined) {
87
- this.set('tags', tags);
88
- }
89
-
90
- get externalDocs(): ExternalDocumentationElement | undefined {
91
- return this.get('externalDocs') as ExternalDocumentationElement | undefined;
92
- }
93
-
94
- set externalDocs(externalDocs: ExternalDocumentationElement | undefined) {
95
- this.set('externalDocs', externalDocs);
96
- }
97
-
98
- get webhooks(): ObjectElement | undefined {
99
- return this.get('webhooks') as ObjectElement | undefined;
100
- }
101
-
102
- set webhooks(webhooks: ObjectElement | undefined) {
103
- this.set('webhooks', webhooks);
104
- }
105
- }
106
-
107
- export default OpenApi3_1;
@@ -1,8 +0,0 @@
1
- import { OpenapiElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- /**
4
- * @public
5
- */
6
- class Openapi extends OpenapiElement {}
7
-
8
- export default Openapi;
@@ -1,19 +0,0 @@
1
- import { OperationElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- import RequestBodyElement from './RequestBody.ts';
4
- import ReferenceElement from './Reference.ts';
5
-
6
- /**
7
- * @public
8
- */
9
- class Operation extends OperationElement {
10
- get requestBody(): RequestBodyElement | ReferenceElement | undefined {
11
- return this.get('requestBody') as RequestBodyElement | ReferenceElement | undefined;
12
- }
13
-
14
- set requestBody(requestBody: RequestBodyElement | ReferenceElement | undefined) {
15
- this.set('requestBody', requestBody);
16
- }
17
- }
18
-
19
- export default Operation;
@@ -1,18 +0,0 @@
1
- import { ParameterElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- import SchemaElement from './Schema.ts';
4
-
5
- /**
6
- * @public
7
- */
8
- class Parameter extends ParameterElement {
9
- get schema(): SchemaElement | undefined {
10
- return this.get('schema') as SchemaElement | undefined;
11
- }
12
-
13
- set schema(schema: SchemaElement | undefined) {
14
- this.set('schema', schema);
15
- }
16
- }
17
-
18
- export default Parameter;
@@ -1,74 +0,0 @@
1
- import { PathItemElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- import OperationElement from './Operation.ts';
4
-
5
- /**
6
- * @public
7
- */
8
- class PathItem extends PathItemElement {
9
- get getField(): OperationElement | undefined {
10
- return this.get('get') as OperationElement | undefined;
11
- }
12
-
13
- set getField(operation: OperationElement | undefined) {
14
- this.set('get', operation);
15
- }
16
-
17
- get put(): OperationElement | undefined {
18
- return this.get('put') as OperationElement | undefined;
19
- }
20
-
21
- set put(operation: OperationElement | undefined) {
22
- this.set('put', operation);
23
- }
24
-
25
- get post(): OperationElement | undefined {
26
- return this.get('post') as OperationElement | undefined;
27
- }
28
-
29
- set post(operation: OperationElement | undefined) {
30
- this.set('post', operation);
31
- }
32
-
33
- get deleteField(): OperationElement | undefined {
34
- return this.get('delete') as OperationElement | undefined;
35
- }
36
-
37
- set deleteField(operation: OperationElement | undefined) {
38
- this.set('delete', operation);
39
- }
40
-
41
- get options(): OperationElement | undefined {
42
- return this.get('options') as OperationElement | undefined;
43
- }
44
-
45
- set options(operation: OperationElement | undefined) {
46
- this.set('options', operation);
47
- }
48
-
49
- get head(): OperationElement | undefined {
50
- return this.get('head') as OperationElement | undefined;
51
- }
52
-
53
- set head(operation: OperationElement | undefined) {
54
- this.set('head', operation);
55
- }
56
-
57
- get patch(): OperationElement | undefined {
58
- return this.get('patch') as OperationElement | undefined;
59
- }
60
-
61
- set patch(operation: OperationElement | undefined) {
62
- this.set('patch', operation);
63
- }
64
-
65
- get trace(): OperationElement | undefined {
66
- return this.get('trace') as OperationElement | undefined;
67
- }
68
-
69
- set trace(operation: OperationElement | undefined) {
70
- this.set('trace', operation);
71
- }
72
- }
73
-
74
- export default PathItem;
@@ -1,8 +0,0 @@
1
- import { PathsElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- /**
4
- * @public
5
- */
6
- class Paths extends PathsElement {}
7
-
8
- export default Paths;
@@ -1,29 +0,0 @@
1
- import { StringElement } from '@speclynx/apidom-datamodel';
2
- import { ReferenceElement } from '@speclynx/apidom-ns-openapi-3-0';
3
-
4
- /**
5
- * @public
6
- */
7
- class Reference extends ReferenceElement {}
8
-
9
- Object.defineProperty(Reference.prototype, 'description', {
10
- get(): StringElement | undefined {
11
- return this.get('description');
12
- },
13
- set(description: StringElement | undefined) {
14
- this.set('description', description);
15
- },
16
- enumerable: true,
17
- });
18
-
19
- Object.defineProperty(Reference.prototype, 'summary', {
20
- get(): StringElement | undefined {
21
- return this.get('summary');
22
- },
23
- set(description: StringElement | undefined) {
24
- this.set('summary', description);
25
- },
26
- enumerable: true,
27
- });
28
-
29
- export default Reference;
@@ -1,8 +0,0 @@
1
- import { RequestBodyElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- /**
4
- * @public
5
- */
6
- class RequestBody extends RequestBodyElement {}
7
-
8
- export default RequestBody;
@@ -1,8 +0,0 @@
1
- import { ResponseElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- /**
4
- * @public
5
- */
6
- class Response extends ResponseElement {}
7
-
8
- export default Response;
@@ -1,8 +0,0 @@
1
- import { ResponsesElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- /**
4
- * @public
5
- */
6
- class Responses extends ResponsesElement {}
7
-
8
- export default Responses;
@@ -1,59 +0,0 @@
1
- import { Element, type Attributes, type Meta } from '@speclynx/apidom-datamodel';
2
- import { JSONSchemaElement } from '@speclynx/apidom-ns-json-schema-2020-12';
3
-
4
- import XmlElement from './Xml.ts';
5
- import DiscriminatorElement from './Discriminator.ts';
6
- import ExternalDocumentationElement from './ExternalDocumentation.ts';
7
-
8
- /**
9
- * @public
10
- */
11
- class Schema extends JSONSchemaElement {
12
- constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
13
- super(content, meta, attributes);
14
- this.element = 'schema';
15
- }
16
-
17
- /**
18
- * OAS base vocabulary
19
- *
20
- * URI: https://spec.openapis.org/oas/v3.1.2.html#base-vocabulary
21
- */
22
-
23
- get discriminator(): DiscriminatorElement | undefined {
24
- return this.get('discriminator') as DiscriminatorElement | undefined;
25
- }
26
-
27
- set discriminator(discriminator: DiscriminatorElement | undefined) {
28
- this.set('discriminator', discriminator);
29
- }
30
-
31
- get xml(): XmlElement | undefined {
32
- return this.get('xml') as XmlElement | undefined;
33
- }
34
-
35
- set xml(xml: XmlElement | undefined) {
36
- this.set('xml', xml);
37
- }
38
-
39
- get externalDocs(): ExternalDocumentationElement | undefined {
40
- return this.get('externalDocs') as ExternalDocumentationElement | undefined;
41
- }
42
-
43
- set externalDocs(externalDocs: ExternalDocumentationElement | undefined) {
44
- this.set('externalDocs', externalDocs);
45
- }
46
-
47
- /**
48
- * @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.
49
- */
50
- get example(): Element | undefined {
51
- return this.get('example') as Element | undefined;
52
- }
53
-
54
- set example(example: Element | undefined) {
55
- this.set('example', example);
56
- }
57
- }
58
-
59
- export default Schema;
@@ -1,8 +0,0 @@
1
- import { SecurityRequirementElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- /**
4
- * @public
5
- */
6
- class SecurityRequirement extends SecurityRequirementElement {}
7
-
8
- export default SecurityRequirement;
@@ -1,8 +0,0 @@
1
- import { SecuritySchemeElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- /**
4
- * @public
5
- */
6
- class SecurityScheme extends SecuritySchemeElement {}
7
-
8
- export default SecurityScheme;
@@ -1,8 +0,0 @@
1
- import { ServerElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- /**
4
- * @public
5
- */
6
- class Server extends ServerElement {}
7
-
8
- export default Server;
@@ -1,8 +0,0 @@
1
- import { ServerVariableElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- /**
4
- * @public
5
- */
6
- class ServerVariable extends ServerVariableElement {}
7
-
8
- export default ServerVariable;
@@ -1,8 +0,0 @@
1
- import { TagElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- /**
4
- * @public
5
- */
6
- class Tag extends TagElement {}
7
-
8
- export default Tag;
@@ -1,8 +0,0 @@
1
- import { XmlElement } from '@speclynx/apidom-ns-openapi-3-0';
2
-
3
- /**
4
- * @public
5
- */
6
- class Xml extends XmlElement {}
7
-
8
- export default Xml;