@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,34 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
import {
|
|
3
|
-
specificationObj as JSONSchemaDraft4Specification,
|
|
4
|
-
PropertiesVisitorOptions,
|
|
5
|
-
PropertiesVisitor as PropertiesVisitorType,
|
|
6
|
-
} from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
7
|
-
import { Path } from '@speclynx/apidom-traverse';
|
|
8
|
-
|
|
9
|
-
import ReferenceElement from '../../../../elements/Reference.ts';
|
|
10
|
-
import { isReferenceElement } from '../../../../predicates.ts';
|
|
11
|
-
|
|
12
|
-
export type { PropertiesVisitorOptions };
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
17
|
-
export const JSONSchemaPropertiesVisitor: typeof PropertiesVisitorType =
|
|
18
|
-
JSONSchemaDraft4Specification.visitors.document.objects.JSONSchema.fixedFields.properties;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @public
|
|
22
|
-
*/
|
|
23
|
-
class PropertiesVisitor extends JSONSchemaPropertiesVisitor {
|
|
24
|
-
ObjectElement(path: Path<ObjectElement>) {
|
|
25
|
-
JSONSchemaPropertiesVisitor.prototype.ObjectElement.call(this, path);
|
|
26
|
-
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
this.element.filter(isReferenceElement).forEach((referenceElement: ReferenceElement) => {
|
|
29
|
-
referenceElement.meta.set('referenced-element', 'schema');
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export default PropertiesVisitor;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
import {
|
|
3
|
-
specificationObj as JSONSchemaDraft4Specification,
|
|
4
|
-
JSONReferenceElement,
|
|
5
|
-
SchemaOrReferenceVisitorOptions,
|
|
6
|
-
SchemaOrReferenceVisitor as JSONSchemaOrJSONReferenceVisitorType,
|
|
7
|
-
} from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
8
|
-
import { Path } from '@speclynx/apidom-traverse';
|
|
9
|
-
|
|
10
|
-
import { isReferenceElement } from '../../../../predicates.ts';
|
|
11
|
-
import SchemaElement from '../../../../elements/Schema.ts';
|
|
12
|
-
|
|
13
|
-
export type { SchemaOrReferenceVisitorOptions };
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @public
|
|
17
|
-
*/
|
|
18
|
-
export const JSONSchemaOrJSONReferenceVisitor: typeof JSONSchemaOrJSONReferenceVisitorType =
|
|
19
|
-
JSONSchemaDraft4Specification.visitors.JSONSchemaOrJSONReferenceVisitor;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @public
|
|
23
|
-
*/
|
|
24
|
-
class SchemaOrReferenceVisitor extends JSONSchemaOrJSONReferenceVisitor {
|
|
25
|
-
declare public element: SchemaElement | JSONReferenceElement;
|
|
26
|
-
|
|
27
|
-
ObjectElement(path: Path<ObjectElement>) {
|
|
28
|
-
JSONSchemaOrJSONReferenceVisitor.prototype.enter.call(this, path);
|
|
29
|
-
|
|
30
|
-
if (isReferenceElement(this.element)) {
|
|
31
|
-
this.element.meta.set('referenced-element', 'schema');
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export default SchemaOrReferenceVisitor;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ArrayElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
import {
|
|
3
|
-
specificationObj as JSONSchemaDraft4Specification,
|
|
4
|
-
TypeVisitorOptions,
|
|
5
|
-
TypeVisitor as TypeVisitorType,
|
|
6
|
-
} from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
7
|
-
import { Path } from '@speclynx/apidom-traverse';
|
|
8
|
-
|
|
9
|
-
export type { TypeVisitorOptions };
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
export const JSONSchemaTypeVisitor: typeof TypeVisitorType =
|
|
15
|
-
JSONSchemaDraft4Specification.visitors.document.objects.JSONSchema.fixedFields.type;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*/
|
|
20
|
-
class TypeVisitor extends JSONSchemaTypeVisitor {
|
|
21
|
-
ArrayElement(path: Path<ArrayElement>) {
|
|
22
|
-
this.enter(path);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export default TypeVisitor;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { always } from 'ramda';
|
|
2
|
-
|
|
3
|
-
import SchemaElement from '../../../../elements/Schema.ts';
|
|
4
|
-
import { SpecPath } from '../../generics/FixedFieldsVisitor.ts';
|
|
5
|
-
import { BaseFixedFieldsVisitor, BaseFixedFieldsVisitorOptions } from '../bases.ts';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
10
|
-
export type { BaseFixedFieldsVisitorOptions as SchemaVisitorOptions };
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
|
-
class SchemaVisitor extends BaseFixedFieldsVisitor {
|
|
16
|
-
declare public readonly element: SchemaElement;
|
|
17
|
-
|
|
18
|
-
declare protected readonly specPath: SpecPath<['document', 'objects', 'Schema']>;
|
|
19
|
-
|
|
20
|
-
declare protected readonly canSupportSpecificationExtensions: true;
|
|
21
|
-
|
|
22
|
-
constructor(options: BaseFixedFieldsVisitorOptions) {
|
|
23
|
-
super(options);
|
|
24
|
-
this.element = new SchemaElement();
|
|
25
|
-
this.specPath = always(['document', 'objects', 'Schema']);
|
|
26
|
-
this.canSupportSpecificationExtensions = true;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export default SchemaVisitor;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { always } from 'ramda';
|
|
2
|
-
|
|
3
|
-
import SecurityRequirementElement from '../../../../elements/SecurityRequirement.ts';
|
|
4
|
-
import { SpecPath } from '../../generics/MapVisitor.ts';
|
|
5
|
-
import { BaseMapVisitor, BaseMapVisitorOptions } from '../bases.ts';
|
|
6
|
-
|
|
7
|
-
export type { BaseMapVisitorOptions as SecurityRequirementVisitorOptions };
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
class SecurityRequirementVisitor extends BaseMapVisitor {
|
|
13
|
-
declare public readonly element: SecurityRequirementElement;
|
|
14
|
-
|
|
15
|
-
declare protected readonly specPath: SpecPath<['value']>;
|
|
16
|
-
|
|
17
|
-
constructor(options: BaseMapVisitorOptions) {
|
|
18
|
-
super(options);
|
|
19
|
-
this.element = new SecurityRequirementElement();
|
|
20
|
-
this.specPath = always(['value']);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default SecurityRequirementVisitor;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { always } from 'ramda';
|
|
2
|
-
|
|
3
|
-
import SecuritySchemeElement from '../../../../elements/SecurityScheme.ts';
|
|
4
|
-
import { SpecPath } from '../../generics/FixedFieldsVisitor.ts';
|
|
5
|
-
import { BaseFixedFieldsVisitor, BaseFixedFieldsVisitorOptions } from '../bases.ts';
|
|
6
|
-
|
|
7
|
-
export type { BaseFixedFieldsVisitorOptions as SecuritySchemeVisitorOptions };
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
class SecuritySchemeVisitor extends BaseFixedFieldsVisitor {
|
|
13
|
-
declare public readonly element: SecuritySchemeElement;
|
|
14
|
-
|
|
15
|
-
declare protected readonly specPath: SpecPath<['document', 'objects', 'SecurityScheme']>;
|
|
16
|
-
|
|
17
|
-
declare protected readonly canSupportSpecificationExtensions: true;
|
|
18
|
-
|
|
19
|
-
constructor(options: BaseFixedFieldsVisitorOptions) {
|
|
20
|
-
super(options);
|
|
21
|
-
this.element = new SecuritySchemeElement();
|
|
22
|
-
this.specPath = always(['document', 'objects', 'SecurityScheme']);
|
|
23
|
-
this.canSupportSpecificationExtensions = true;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export default SecuritySchemeVisitor;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { StringElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
import { Path } from '@speclynx/apidom-traverse';
|
|
3
|
-
|
|
4
|
-
import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts';
|
|
5
|
-
|
|
6
|
-
export type { FallbackVisitorOptions as UrlVisitorOptions };
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @public
|
|
10
|
-
*/
|
|
11
|
-
class UrlVisitor extends FallbackVisitor {
|
|
12
|
-
declare public readonly element: StringElement;
|
|
13
|
-
|
|
14
|
-
StringElement(path: Path<StringElement>) {
|
|
15
|
-
super.enter(path);
|
|
16
|
-
this.element.classes.push('server-url');
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export default UrlVisitor;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { always } from 'ramda';
|
|
2
|
-
|
|
3
|
-
import { SpecPath } from '../../generics/MapVisitor.ts';
|
|
4
|
-
import { BaseMapVisitor, BaseMapVisitorOptions } from '../bases.ts';
|
|
5
|
-
import ServerVariablesElement from '../../../../elements/nces/ServerVariables.ts';
|
|
6
|
-
|
|
7
|
-
export type { BaseMapVisitorOptions as VariablesVisitorOptions };
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
class VariablesVisitor extends BaseMapVisitor {
|
|
13
|
-
declare public readonly element: ServerVariablesElement;
|
|
14
|
-
|
|
15
|
-
declare protected readonly specPath: SpecPath<['document', 'objects', 'ServerVariable']>;
|
|
16
|
-
|
|
17
|
-
constructor(options: BaseMapVisitorOptions) {
|
|
18
|
-
super(options);
|
|
19
|
-
this.element = new ServerVariablesElement();
|
|
20
|
-
this.specPath = always(['document', 'objects', 'ServerVariable']);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default VariablesVisitor;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { always } from 'ramda';
|
|
2
|
-
|
|
3
|
-
import ServerElement from '../../../../elements/Server.ts';
|
|
4
|
-
import { SpecPath } from '../../generics/FixedFieldsVisitor.ts';
|
|
5
|
-
import { BaseFixedFieldsVisitor, BaseFixedFieldsVisitorOptions } from '../bases.ts';
|
|
6
|
-
|
|
7
|
-
export type { BaseFixedFieldsVisitorOptions as ServerVisitorOptions };
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
class ServerVisitor extends BaseFixedFieldsVisitor {
|
|
13
|
-
declare public readonly element: ServerElement;
|
|
14
|
-
|
|
15
|
-
declare protected readonly specPath: SpecPath<['document', 'objects', 'Server']>;
|
|
16
|
-
|
|
17
|
-
declare protected readonly canSupportSpecificationExtensions: true;
|
|
18
|
-
|
|
19
|
-
constructor(options: BaseFixedFieldsVisitorOptions) {
|
|
20
|
-
super(options);
|
|
21
|
-
this.element = new ServerElement();
|
|
22
|
-
this.specPath = always(['document', 'objects', 'Server']);
|
|
23
|
-
this.canSupportSpecificationExtensions = true;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export default ServerVisitor;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { always } from 'ramda';
|
|
2
|
-
|
|
3
|
-
import ServerVariableElement from '../../../../elements/ServerVariable.ts';
|
|
4
|
-
import { SpecPath } from '../../generics/FixedFieldsVisitor.ts';
|
|
5
|
-
import { BaseFixedFieldsVisitor, BaseFixedFieldsVisitorOptions } from '../bases.ts';
|
|
6
|
-
|
|
7
|
-
export type { BaseFixedFieldsVisitorOptions as ServerVariableVisitorOptions };
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
class ServerVariableVisitor extends BaseFixedFieldsVisitor {
|
|
13
|
-
declare public readonly element: ServerVariableElement;
|
|
14
|
-
|
|
15
|
-
declare protected readonly specPath: SpecPath<['document', 'objects', 'ServerVariable']>;
|
|
16
|
-
|
|
17
|
-
declare protected readonly canSupportSpecificationExtensions: true;
|
|
18
|
-
|
|
19
|
-
constructor(options: BaseFixedFieldsVisitorOptions) {
|
|
20
|
-
super(options);
|
|
21
|
-
this.element = new ServerVariableElement();
|
|
22
|
-
this.specPath = always(['document', 'objects', 'ServerVariable']);
|
|
23
|
-
this.canSupportSpecificationExtensions = true;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export default ServerVariableVisitor;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { always } from 'ramda';
|
|
2
|
-
|
|
3
|
-
import TagElement from '../../../../elements/Tag.ts';
|
|
4
|
-
import { SpecPath } from '../../generics/FixedFieldsVisitor.ts';
|
|
5
|
-
import { BaseFixedFieldsVisitor, BaseFixedFieldsVisitorOptions } from '../bases.ts';
|
|
6
|
-
|
|
7
|
-
export type { BaseFixedFieldsVisitorOptions as TagVisitorOptions };
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
class TagVisitor extends BaseFixedFieldsVisitor {
|
|
13
|
-
declare public readonly element: TagElement;
|
|
14
|
-
|
|
15
|
-
declare protected readonly specPath: SpecPath<['document', 'objects', 'Tag']>;
|
|
16
|
-
|
|
17
|
-
declare protected readonly canSupportSpecificationExtensions: true;
|
|
18
|
-
|
|
19
|
-
constructor(options: BaseFixedFieldsVisitorOptions) {
|
|
20
|
-
super(options);
|
|
21
|
-
this.element = new TagElement();
|
|
22
|
-
this.specPath = always(['document', 'objects', 'Tag']);
|
|
23
|
-
this.canSupportSpecificationExtensions = true;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export default TagVisitor;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { always } from 'ramda';
|
|
2
|
-
|
|
3
|
-
import XmlElement from '../../../../elements/Xml.ts';
|
|
4
|
-
import { SpecPath } from '../../generics/FixedFieldsVisitor.ts';
|
|
5
|
-
import { BaseFixedFieldsVisitor, BaseFixedFieldsVisitorOptions } from '../bases.ts';
|
|
6
|
-
|
|
7
|
-
export type { BaseFixedFieldsVisitorOptions as XmlVisitorOptions };
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
class XmlVisitor extends BaseFixedFieldsVisitor {
|
|
13
|
-
declare public readonly element: XmlElement;
|
|
14
|
-
|
|
15
|
-
declare protected readonly specPath: SpecPath<['document', 'objects', 'XML']>;
|
|
16
|
-
|
|
17
|
-
declare protected readonly canSupportSpecificationExtensions: true;
|
|
18
|
-
|
|
19
|
-
constructor(options: BaseFixedFieldsVisitorOptions) {
|
|
20
|
-
super(options);
|
|
21
|
-
this.element = new XmlElement();
|
|
22
|
-
this.specPath = always(['document', 'objects', 'XML']);
|
|
23
|
-
this.canSupportSpecificationExtensions = true;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export default XmlVisitor;
|