@speclynx/apidom-ns-openapi-3-0 3.2.1 → 4.0.1
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 +8 -0
- package/dist/apidom-ns-openapi-3-0.browser.js +24 -20
- package/package.json +7 -7
- package/src/elements/Callback.cjs +0 -15
- package/src/elements/Callback.mjs +0 -12
- package/src/elements/Components.cjs +0 -69
- package/src/elements/Components.mjs +0 -66
- package/src/elements/Contact.cjs +0 -33
- package/src/elements/Contact.mjs +0 -30
- package/src/elements/Discriminator.cjs +0 -27
- package/src/elements/Discriminator.mjs +0 -24
- package/src/elements/Encoding.cjs +0 -45
- package/src/elements/Encoding.mjs +0 -42
- package/src/elements/Example.cjs +0 -39
- package/src/elements/Example.mjs +0 -36
- package/src/elements/ExternalDocumentation.cjs +0 -27
- package/src/elements/ExternalDocumentation.mjs +0 -24
- package/src/elements/Header.cjs +0 -90
- package/src/elements/Header.mjs +0 -86
- package/src/elements/Info.cjs +0 -52
- package/src/elements/Info.mjs +0 -48
- package/src/elements/License.cjs +0 -27
- package/src/elements/License.mjs +0 -24
- package/src/elements/Link.cjs +0 -63
- package/src/elements/Link.mjs +0 -59
- package/src/elements/MediaType.cjs +0 -39
- package/src/elements/MediaType.mjs +0 -35
- package/src/elements/OAuthFlow.cjs +0 -39
- package/src/elements/OAuthFlow.mjs +0 -36
- package/src/elements/OAuthFlows.cjs +0 -39
- package/src/elements/OAuthFlows.mjs +0 -35
- package/src/elements/OpenApi3-0.cjs +0 -65
- package/src/elements/OpenApi3-0.mjs +0 -61
- package/src/elements/Openapi.cjs +0 -17
- package/src/elements/Openapi.mjs +0 -14
- package/src/elements/Operation.cjs +0 -90
- package/src/elements/Operation.mjs +0 -86
- package/src/elements/Parameter.cjs +0 -102
- package/src/elements/Parameter.mjs +0 -98
- package/src/elements/PathItem.cjs +0 -93
- package/src/elements/PathItem.mjs +0 -89
- package/src/elements/Paths.cjs +0 -15
- package/src/elements/Paths.mjs +0 -12
- package/src/elements/Reference.cjs +0 -22
- package/src/elements/Reference.mjs +0 -19
- package/src/elements/RequestBody.cjs +0 -36
- package/src/elements/RequestBody.mjs +0 -33
- package/src/elements/Response.cjs +0 -39
- package/src/elements/Response.mjs +0 -36
- package/src/elements/Responses.cjs +0 -21
- package/src/elements/Responses.mjs +0 -17
- package/src/elements/Schema.cjs +0 -170
- package/src/elements/Schema.mjs +0 -166
- package/src/elements/SecurityRequirement.cjs +0 -15
- package/src/elements/SecurityRequirement.mjs +0 -12
- package/src/elements/SecurityScheme.cjs +0 -63
- package/src/elements/SecurityScheme.mjs +0 -59
- package/src/elements/Server.cjs +0 -33
- package/src/elements/Server.mjs +0 -30
- package/src/elements/ServerVariable.cjs +0 -33
- package/src/elements/ServerVariable.mjs +0 -30
- package/src/elements/Tag.cjs +0 -33
- package/src/elements/Tag.mjs +0 -29
- package/src/elements/Xml.cjs +0 -45
- package/src/elements/Xml.mjs +0 -42
- package/src/elements/nces/ComponentsCallbacks.cjs +0 -16
- package/src/elements/nces/ComponentsCallbacks.mjs +0 -13
- package/src/elements/nces/ComponentsExamples.cjs +0 -17
- package/src/elements/nces/ComponentsExamples.mjs +0 -14
- package/src/elements/nces/ComponentsHeaders.cjs +0 -16
- package/src/elements/nces/ComponentsHeaders.mjs +0 -13
- package/src/elements/nces/ComponentsLinks.cjs +0 -16
- package/src/elements/nces/ComponentsLinks.mjs +0 -13
- package/src/elements/nces/ComponentsParameters.cjs +0 -17
- package/src/elements/nces/ComponentsParameters.mjs +0 -14
- package/src/elements/nces/ComponentsRequestBodies.cjs +0 -16
- package/src/elements/nces/ComponentsRequestBodies.mjs +0 -13
- package/src/elements/nces/ComponentsResponses.cjs +0 -16
- package/src/elements/nces/ComponentsResponses.mjs +0 -13
- package/src/elements/nces/ComponentsSchemas.cjs +0 -16
- package/src/elements/nces/ComponentsSchemas.mjs +0 -13
- package/src/elements/nces/ComponentsSecuritySchemes.cjs +0 -16
- package/src/elements/nces/ComponentsSecuritySchemes.mjs +0 -13
- package/src/elements/nces/DiscriminatorMapping.cjs +0 -16
- package/src/elements/nces/DiscriminatorMapping.mjs +0 -13
- package/src/elements/nces/EncodingHeaders.cjs +0 -16
- package/src/elements/nces/EncodingHeaders.mjs +0 -13
- package/src/elements/nces/HeaderContent.cjs +0 -17
- package/src/elements/nces/HeaderContent.mjs +0 -14
- package/src/elements/nces/HeaderExamples.cjs +0 -17
- package/src/elements/nces/HeaderExamples.mjs +0 -14
- package/src/elements/nces/LinkParameters.cjs +0 -16
- package/src/elements/nces/LinkParameters.mjs +0 -13
- package/src/elements/nces/MediaTypeEncoding.cjs +0 -16
- package/src/elements/nces/MediaTypeEncoding.mjs +0 -13
- package/src/elements/nces/MediaTypeExamples.cjs +0 -17
- package/src/elements/nces/MediaTypeExamples.mjs +0 -14
- package/src/elements/nces/OAuthFlowScopes.cjs +0 -16
- package/src/elements/nces/OAuthFlowScopes.mjs +0 -13
- package/src/elements/nces/OperationCallbacks.cjs +0 -16
- package/src/elements/nces/OperationCallbacks.mjs +0 -13
- package/src/elements/nces/OperationParameters.cjs +0 -17
- package/src/elements/nces/OperationParameters.mjs +0 -14
- package/src/elements/nces/OperationSecurity.cjs +0 -17
- package/src/elements/nces/OperationSecurity.mjs +0 -14
- package/src/elements/nces/OperationServers.cjs +0 -17
- package/src/elements/nces/OperationServers.mjs +0 -14
- package/src/elements/nces/OperationTags.cjs +0 -16
- package/src/elements/nces/OperationTags.mjs +0 -13
- package/src/elements/nces/ParameterContent.cjs +0 -17
- package/src/elements/nces/ParameterContent.mjs +0 -14
- package/src/elements/nces/ParameterExamples.cjs +0 -17
- package/src/elements/nces/ParameterExamples.mjs +0 -14
- package/src/elements/nces/PathItemParameters.cjs +0 -17
- package/src/elements/nces/PathItemParameters.mjs +0 -14
- package/src/elements/nces/PathItemServers.cjs +0 -17
- package/src/elements/nces/PathItemServers.mjs +0 -14
- package/src/elements/nces/RequestBodyContent.cjs +0 -17
- package/src/elements/nces/RequestBodyContent.mjs +0 -14
- package/src/elements/nces/ResponseContent.cjs +0 -17
- package/src/elements/nces/ResponseContent.mjs +0 -14
- package/src/elements/nces/ResponseHeaders.cjs +0 -16
- package/src/elements/nces/ResponseHeaders.mjs +0 -13
- package/src/elements/nces/ResponseLinks.cjs +0 -16
- package/src/elements/nces/ResponseLinks.mjs +0 -13
- package/src/elements/nces/Security.cjs +0 -16
- package/src/elements/nces/Security.mjs +0 -13
- package/src/elements/nces/ServerVariables.cjs +0 -16
- package/src/elements/nces/ServerVariables.mjs +0 -13
- package/src/elements/nces/Servers.cjs +0 -16
- package/src/elements/nces/Servers.mjs +0 -13
- package/src/elements/nces/Tags.cjs +0 -16
- package/src/elements/nces/Tags.mjs +0 -13
- package/src/index.cjs +0 -205
- package/src/index.mjs +0 -54
- package/src/media-types.cjs +0 -34
- package/src/media-types.mjs +0 -30
- package/src/namespace.cjs +0 -79
- package/src/namespace.mjs +0 -74
- package/src/predicates.cjs +0 -188
- package/src/predicates.mjs +0 -155
- package/src/refractor/index.cjs +0 -358
- package/src/refractor/index.mjs +0 -321
- package/src/refractor/inspect.cjs +0 -205
- package/src/refractor/inspect.mjs +0 -170
- package/src/refractor/plugins/replace-empty-element.cjs +0 -633
- package/src/refractor/plugins/replace-empty-element.mjs +0 -625
- package/src/refractor/predicates.cjs +0 -36
- package/src/refractor/predicates.mjs +0 -31
- package/src/refractor/specification.cjs +0 -700
- package/src/refractor/specification.mjs +0 -695
- package/src/refractor/toolbox.cjs +0 -28
- package/src/refractor/toolbox.mjs +0 -21
- package/src/refractor/visitors/FallbackVisitor.cjs +0 -24
- package/src/refractor/visitors/FallbackVisitor.mjs +0 -18
- package/src/refractor/visitors/SpecificationExtensionVisitor.cjs +0 -18
- package/src/refractor/visitors/SpecificationExtensionVisitor.mjs +0 -13
- package/src/refractor/visitors/SpecificationVisitor.cjs +0 -88
- package/src/refractor/visitors/SpecificationVisitor.mjs +0 -82
- package/src/refractor/visitors/Visitor.cjs +0 -36
- package/src/refractor/visitors/Visitor.mjs +0 -33
- package/src/refractor/visitors/generics/AlternatingVisitor.cjs +0 -42
- package/src/refractor/visitors/generics/AlternatingVisitor.mjs +0 -35
- package/src/refractor/visitors/generics/FixedFieldsVisitor.cjs +0 -75
- package/src/refractor/visitors/generics/FixedFieldsVisitor.mjs +0 -68
- package/src/refractor/visitors/generics/MapVisitor.cjs +0 -21
- package/src/refractor/visitors/generics/MapVisitor.mjs +0 -15
- package/src/refractor/visitors/generics/MixedFieldsVisitor.cjs +0 -67
- package/src/refractor/visitors/generics/MixedFieldsVisitor.mjs +0 -61
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.cjs +0 -72
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.mjs +0 -66
- package/src/refractor/visitors/open-api-3-0/ContentVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-3-0/ContentVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-3-0/ExamplesVisitor.cjs +0 -33
- package/src/refractor/visitors/open-api-3-0/ExamplesVisitor.mjs +0 -28
- package/src/refractor/visitors/open-api-3-0/OpenapiVisitor.cjs +0 -25
- package/src/refractor/visitors/open-api-3-0/OpenapiVisitor.mjs +0 -19
- package/src/refractor/visitors/open-api-3-0/ParametersVisitor.cjs +0 -36
- package/src/refractor/visitors/open-api-3-0/ParametersVisitor.mjs +0 -31
- package/src/refractor/visitors/open-api-3-0/SecurityVisitor.cjs +0 -35
- package/src/refractor/visitors/open-api-3-0/SecurityVisitor.mjs +0 -29
- package/src/refractor/visitors/open-api-3-0/ServersVisitor.cjs +0 -32
- package/src/refractor/visitors/open-api-3-0/ServersVisitor.mjs +0 -26
- package/src/refractor/visitors/open-api-3-0/TagsVisitor.cjs +0 -32
- package/src/refractor/visitors/open-api-3-0/TagsVisitor.mjs +0 -26
- package/src/refractor/visitors/open-api-3-0/bases.cjs +0 -72
- package/src/refractor/visitors/open-api-3-0/bases.mjs +0 -67
- package/src/refractor/visitors/open-api-3-0/callback/index.cjs +0 -38
- package/src/refractor/visitors/open-api-3-0/callback/index.mjs +0 -32
- package/src/refractor/visitors/open-api-3-0/components/CallbacksVisitor.cjs +0 -33
- package/src/refractor/visitors/open-api-3-0/components/CallbacksVisitor.mjs +0 -27
- package/src/refractor/visitors/open-api-3-0/components/ExamplesVisitor.cjs +0 -34
- package/src/refractor/visitors/open-api-3-0/components/ExamplesVisitor.mjs +0 -28
- package/src/refractor/visitors/open-api-3-0/components/HeadersVisitor.cjs +0 -41
- package/src/refractor/visitors/open-api-3-0/components/HeadersVisitor.mjs +0 -35
- package/src/refractor/visitors/open-api-3-0/components/LinksVisitor.cjs +0 -33
- package/src/refractor/visitors/open-api-3-0/components/LinksVisitor.mjs +0 -27
- package/src/refractor/visitors/open-api-3-0/components/ParametersVisitor.cjs +0 -34
- package/src/refractor/visitors/open-api-3-0/components/ParametersVisitor.mjs +0 -28
- package/src/refractor/visitors/open-api-3-0/components/RequestBodiesVisitor.cjs +0 -33
- package/src/refractor/visitors/open-api-3-0/components/RequestBodiesVisitor.mjs +0 -27
- package/src/refractor/visitors/open-api-3-0/components/ResponsesVisitor.cjs +0 -41
- package/src/refractor/visitors/open-api-3-0/components/ResponsesVisitor.mjs +0 -35
- package/src/refractor/visitors/open-api-3-0/components/SchemasVisitor.cjs +0 -34
- package/src/refractor/visitors/open-api-3-0/components/SchemasVisitor.mjs +0 -28
- package/src/refractor/visitors/open-api-3-0/components/SecuritySchemesVisitor.cjs +0 -33
- package/src/refractor/visitors/open-api-3-0/components/SecuritySchemesVisitor.mjs +0 -27
- package/src/refractor/visitors/open-api-3-0/components/index.cjs +0 -25
- package/src/refractor/visitors/open-api-3-0/components/index.mjs +0 -19
- package/src/refractor/visitors/open-api-3-0/contact/index.cjs +0 -20
- package/src/refractor/visitors/open-api-3-0/contact/index.mjs +0 -15
- package/src/refractor/visitors/open-api-3-0/distriminator/MappingVisitor.cjs +0 -19
- package/src/refractor/visitors/open-api-3-0/distriminator/MappingVisitor.mjs +0 -14
- package/src/refractor/visitors/open-api-3-0/distriminator/index.cjs +0 -20
- package/src/refractor/visitors/open-api-3-0/distriminator/index.mjs +0 -15
- package/src/refractor/visitors/open-api-3-0/encoding/HeadersVisitor.cjs +0 -43
- package/src/refractor/visitors/open-api-3-0/encoding/HeadersVisitor.mjs +0 -37
- package/src/refractor/visitors/open-api-3-0/encoding/index.cjs +0 -40
- package/src/refractor/visitors/open-api-3-0/encoding/index.mjs +0 -34
- package/src/refractor/visitors/open-api-3-0/example/ExternalValueVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-3-0/example/ExternalValueVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-3-0/example/index.cjs +0 -29
- package/src/refractor/visitors/open-api-3-0/example/index.mjs +0 -24
- package/src/refractor/visitors/open-api-3-0/external-documentation/index.cjs +0 -20
- package/src/refractor/visitors/open-api-3-0/external-documentation/index.mjs +0 -15
- package/src/refractor/visitors/open-api-3-0/header/ContentVisitor.cjs +0 -17
- package/src/refractor/visitors/open-api-3-0/header/ContentVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-0/header/ExamplesVisitor.cjs +0 -17
- package/src/refractor/visitors/open-api-3-0/header/ExamplesVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-0/header/SchemaVisitor.cjs +0 -32
- package/src/refractor/visitors/open-api-3-0/header/SchemaVisitor.mjs +0 -27
- package/src/refractor/visitors/open-api-3-0/header/index.cjs +0 -20
- package/src/refractor/visitors/open-api-3-0/header/index.mjs +0 -15
- package/src/refractor/visitors/open-api-3-0/index.cjs +0 -29
- package/src/refractor/visitors/open-api-3-0/index.mjs +0 -23
- package/src/refractor/visitors/open-api-3-0/info/VersionVisitor.cjs +0 -17
- package/src/refractor/visitors/open-api-3-0/info/VersionVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-0/info/index.cjs +0 -20
- package/src/refractor/visitors/open-api-3-0/info/index.mjs +0 -15
- package/src/refractor/visitors/open-api-3-0/license/index.cjs +0 -20
- package/src/refractor/visitors/open-api-3-0/license/index.mjs +0 -15
- package/src/refractor/visitors/open-api-3-0/link/OperationIdVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-3-0/link/OperationIdVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-3-0/link/OperationRefVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-3-0/link/OperationRefVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-3-0/link/ParametersVisitor.cjs +0 -19
- package/src/refractor/visitors/open-api-3-0/link/ParametersVisitor.mjs +0 -14
- package/src/refractor/visitors/open-api-3-0/link/index.cjs +0 -29
- package/src/refractor/visitors/open-api-3-0/link/index.mjs +0 -24
- package/src/refractor/visitors/open-api-3-0/media-type/EncodingVisitor.cjs +0 -19
- package/src/refractor/visitors/open-api-3-0/media-type/EncodingVisitor.mjs +0 -14
- package/src/refractor/visitors/open-api-3-0/media-type/ExamplesVisitor.cjs +0 -17
- package/src/refractor/visitors/open-api-3-0/media-type/ExamplesVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-0/media-type/SchemaVisitor.cjs +0 -32
- package/src/refractor/visitors/open-api-3-0/media-type/SchemaVisitor.mjs +0 -27
- package/src/refractor/visitors/open-api-3-0/media-type/index.cjs +0 -20
- package/src/refractor/visitors/open-api-3-0/media-type/index.mjs +0 -15
- package/src/refractor/visitors/open-api-3-0/oauth-flow/ScopesVisitor.cjs +0 -19
- package/src/refractor/visitors/open-api-3-0/oauth-flow/ScopesVisitor.mjs +0 -14
- package/src/refractor/visitors/open-api-3-0/oauth-flow/index.cjs +0 -20
- package/src/refractor/visitors/open-api-3-0/oauth-flow/index.mjs +0 -15
- package/src/refractor/visitors/open-api-3-0/oauth-flows/index.cjs +0 -20
- package/src/refractor/visitors/open-api-3-0/oauth-flows/index.mjs +0 -15
- package/src/refractor/visitors/open-api-3-0/operation/CallbacksVisitor.cjs +0 -34
- package/src/refractor/visitors/open-api-3-0/operation/CallbacksVisitor.mjs +0 -28
- package/src/refractor/visitors/open-api-3-0/operation/ParametersVisitor.cjs +0 -17
- package/src/refractor/visitors/open-api-3-0/operation/ParametersVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-0/operation/RequestBodyVisitor.cjs +0 -35
- package/src/refractor/visitors/open-api-3-0/operation/RequestBodyVisitor.mjs +0 -29
- package/src/refractor/visitors/open-api-3-0/operation/SecurityVisitor.cjs +0 -32
- package/src/refractor/visitors/open-api-3-0/operation/SecurityVisitor.mjs +0 -26
- package/src/refractor/visitors/open-api-3-0/operation/ServersVisitor.cjs +0 -17
- package/src/refractor/visitors/open-api-3-0/operation/ServersVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-0/operation/TagsVisitor.cjs +0 -27
- package/src/refractor/visitors/open-api-3-0/operation/TagsVisitor.mjs +0 -21
- package/src/refractor/visitors/open-api-3-0/operation/index.cjs +0 -23
- package/src/refractor/visitors/open-api-3-0/operation/index.mjs +0 -17
- package/src/refractor/visitors/open-api-3-0/parameter/ContentVisitor.cjs +0 -17
- package/src/refractor/visitors/open-api-3-0/parameter/ContentVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-0/parameter/ExamplesVisitor.cjs +0 -17
- package/src/refractor/visitors/open-api-3-0/parameter/ExamplesVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-0/parameter/SchemaVisitor.cjs +0 -36
- package/src/refractor/visitors/open-api-3-0/parameter/SchemaVisitor.mjs +0 -30
- package/src/refractor/visitors/open-api-3-0/parameter/index.cjs +0 -40
- package/src/refractor/visitors/open-api-3-0/parameter/index.mjs +0 -34
- package/src/refractor/visitors/open-api-3-0/path-item/$RefVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-3-0/path-item/$RefVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-3-0/path-item/ParametersVisitor.cjs +0 -17
- package/src/refractor/visitors/open-api-3-0/path-item/ParametersVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-0/path-item/ServersVisitor.cjs +0 -17
- package/src/refractor/visitors/open-api-3-0/path-item/ServersVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-0/path-item/index.cjs +0 -42
- package/src/refractor/visitors/open-api-3-0/path-item/index.mjs +0 -36
- package/src/refractor/visitors/open-api-3-0/paths/index.cjs +0 -40
- package/src/refractor/visitors/open-api-3-0/paths/index.mjs +0 -34
- package/src/refractor/visitors/open-api-3-0/reference/$RefVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-3-0/reference/$RefVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-3-0/reference/index.cjs +0 -33
- package/src/refractor/visitors/open-api-3-0/reference/index.mjs +0 -27
- package/src/refractor/visitors/open-api-3-0/request-body/ContentVisitor.cjs +0 -17
- package/src/refractor/visitors/open-api-3-0/request-body/ContentVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-0/request-body/index.cjs +0 -39
- package/src/refractor/visitors/open-api-3-0/request-body/index.mjs +0 -33
- package/src/refractor/visitors/open-api-3-0/response/ContentVisitor.cjs +0 -17
- package/src/refractor/visitors/open-api-3-0/response/ContentVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-0/response/HeadersVisitor.cjs +0 -42
- package/src/refractor/visitors/open-api-3-0/response/HeadersVisitor.mjs +0 -36
- package/src/refractor/visitors/open-api-3-0/response/LinksVisitor.cjs +0 -32
- package/src/refractor/visitors/open-api-3-0/response/LinksVisitor.mjs +0 -26
- package/src/refractor/visitors/open-api-3-0/response/index.cjs +0 -47
- package/src/refractor/visitors/open-api-3-0/response/index.mjs +0 -41
- package/src/refractor/visitors/open-api-3-0/responses/DefaultVisitor.cjs +0 -40
- package/src/refractor/visitors/open-api-3-0/responses/DefaultVisitor.mjs +0 -34
- package/src/refractor/visitors/open-api-3-0/responses/index.cjs +0 -46
- package/src/refractor/visitors/open-api-3-0/responses/index.mjs +0 -40
- package/src/refractor/visitors/open-api-3-0/schema/AllOfVisitor.cjs +0 -25
- package/src/refractor/visitors/open-api-3-0/schema/AllOfVisitor.mjs +0 -21
- package/src/refractor/visitors/open-api-3-0/schema/AnyOfVisitor.cjs +0 -25
- package/src/refractor/visitors/open-api-3-0/schema/AnyOfVisitor.mjs +0 -21
- package/src/refractor/visitors/open-api-3-0/schema/ItemsVisitor.cjs +0 -22
- package/src/refractor/visitors/open-api-3-0/schema/ItemsVisitor.mjs +0 -19
- package/src/refractor/visitors/open-api-3-0/schema/OneOfVisitor.cjs +0 -25
- package/src/refractor/visitors/open-api-3-0/schema/OneOfVisitor.mjs +0 -21
- package/src/refractor/visitors/open-api-3-0/schema/PropertiesVisitor.cjs +0 -25
- package/src/refractor/visitors/open-api-3-0/schema/PropertiesVisitor.mjs +0 -21
- package/src/refractor/visitors/open-api-3-0/schema/SchemaOrReferenceVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-3-0/schema/SchemaOrReferenceVisitor.mjs +0 -19
- package/src/refractor/visitors/open-api-3-0/schema/TypeVisitor.cjs +0 -19
- package/src/refractor/visitors/open-api-3-0/schema/TypeVisitor.mjs +0 -15
- package/src/refractor/visitors/open-api-3-0/schema/index.cjs +0 -24
- package/src/refractor/visitors/open-api-3-0/schema/index.mjs +0 -18
- package/src/refractor/visitors/open-api-3-0/security-requirement/index.cjs +0 -19
- package/src/refractor/visitors/open-api-3-0/security-requirement/index.mjs +0 -14
- package/src/refractor/visitors/open-api-3-0/security-scheme/index.cjs +0 -20
- package/src/refractor/visitors/open-api-3-0/security-scheme/index.mjs +0 -15
- package/src/refractor/visitors/open-api-3-0/server/UrlVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-3-0/server/UrlVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-3-0/server/VariablesVisitor.cjs +0 -19
- package/src/refractor/visitors/open-api-3-0/server/VariablesVisitor.mjs +0 -14
- package/src/refractor/visitors/open-api-3-0/server/index.cjs +0 -20
- package/src/refractor/visitors/open-api-3-0/server/index.mjs +0 -15
- package/src/refractor/visitors/open-api-3-0/server-variable/index.cjs +0 -20
- package/src/refractor/visitors/open-api-3-0/server-variable/index.mjs +0 -15
- package/src/refractor/visitors/open-api-3-0/tag/index.cjs +0 -20
- package/src/refractor/visitors/open-api-3-0/tag/index.mjs +0 -15
- package/src/refractor/visitors/open-api-3-0/xml/index.cjs +0 -20
- package/src/refractor/visitors/open-api-3-0/xml/index.mjs +0 -15
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
/**
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
class PathItem extends ObjectElement {
|
|
6
|
-
constructor(content, meta, attributes) {
|
|
7
|
-
super(content, meta, attributes);
|
|
8
|
-
this.element = 'pathItem';
|
|
9
|
-
}
|
|
10
|
-
get $ref() {
|
|
11
|
-
return this.get('$ref');
|
|
12
|
-
}
|
|
13
|
-
set $ref($ref) {
|
|
14
|
-
this.set('$ref', $ref);
|
|
15
|
-
}
|
|
16
|
-
get summary() {
|
|
17
|
-
return this.get('summary');
|
|
18
|
-
}
|
|
19
|
-
set summary(summary) {
|
|
20
|
-
this.set('summary', summary);
|
|
21
|
-
}
|
|
22
|
-
get description() {
|
|
23
|
-
return this.get('description');
|
|
24
|
-
}
|
|
25
|
-
set description(description) {
|
|
26
|
-
this.set('description', description);
|
|
27
|
-
}
|
|
28
|
-
get getField() {
|
|
29
|
-
return this.get('get');
|
|
30
|
-
}
|
|
31
|
-
set getField(operation) {
|
|
32
|
-
this.set('get', operation);
|
|
33
|
-
}
|
|
34
|
-
get put() {
|
|
35
|
-
return this.get('put');
|
|
36
|
-
}
|
|
37
|
-
set put(operation) {
|
|
38
|
-
this.set('put', operation);
|
|
39
|
-
}
|
|
40
|
-
get post() {
|
|
41
|
-
return this.get('post');
|
|
42
|
-
}
|
|
43
|
-
set post(operation) {
|
|
44
|
-
this.set('post', operation);
|
|
45
|
-
}
|
|
46
|
-
get deleteField() {
|
|
47
|
-
return this.get('delete');
|
|
48
|
-
}
|
|
49
|
-
set deleteField(operation) {
|
|
50
|
-
this.set('delete', operation);
|
|
51
|
-
}
|
|
52
|
-
get options() {
|
|
53
|
-
return this.get('options');
|
|
54
|
-
}
|
|
55
|
-
set options(operation) {
|
|
56
|
-
this.set('options', operation);
|
|
57
|
-
}
|
|
58
|
-
get head() {
|
|
59
|
-
return this.get('head');
|
|
60
|
-
}
|
|
61
|
-
set head(operation) {
|
|
62
|
-
this.set('head', operation);
|
|
63
|
-
}
|
|
64
|
-
get patch() {
|
|
65
|
-
return this.get('patch');
|
|
66
|
-
}
|
|
67
|
-
set patch(operation) {
|
|
68
|
-
this.set('patch', operation);
|
|
69
|
-
}
|
|
70
|
-
get trace() {
|
|
71
|
-
return this.get('trace');
|
|
72
|
-
}
|
|
73
|
-
set trace(operation) {
|
|
74
|
-
this.set('trace', operation);
|
|
75
|
-
}
|
|
76
|
-
get servers() {
|
|
77
|
-
return this.get('servers');
|
|
78
|
-
}
|
|
79
|
-
set servers(servers) {
|
|
80
|
-
this.set('servers', servers);
|
|
81
|
-
}
|
|
82
|
-
get parameters() {
|
|
83
|
-
return this.get('parameters');
|
|
84
|
-
}
|
|
85
|
-
set parameters(parameters) {
|
|
86
|
-
this.set('parameters', parameters);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
export default PathItem;
|
package/src/elements/Paths.cjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomDatamodel = require("@speclynx/apidom-datamodel");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class Paths extends _apidomDatamodel.ObjectElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'paths';
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
var _default = exports.default = Paths;
|
package/src/elements/Paths.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class Paths extends ObjectElement {
|
|
7
|
-
constructor(content, meta, attributes) {
|
|
8
|
-
super(content, meta, attributes);
|
|
9
|
-
this.element = 'paths';
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export default Paths;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomDatamodel = require("@speclynx/apidom-datamodel");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class Reference extends _apidomDatamodel.ObjectElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'reference';
|
|
13
|
-
this.classes.push('openapi-reference');
|
|
14
|
-
}
|
|
15
|
-
get $ref() {
|
|
16
|
-
return this.get('$ref');
|
|
17
|
-
}
|
|
18
|
-
set $ref($ref) {
|
|
19
|
-
this.set('$ref', $ref);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
var _default = exports.default = Reference;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class Reference extends ObjectElement {
|
|
7
|
-
constructor(content, meta, attributes) {
|
|
8
|
-
super(content, meta, attributes);
|
|
9
|
-
this.element = 'reference';
|
|
10
|
-
this.classes.push('openapi-reference');
|
|
11
|
-
}
|
|
12
|
-
get $ref() {
|
|
13
|
-
return this.get('$ref');
|
|
14
|
-
}
|
|
15
|
-
set $ref($ref) {
|
|
16
|
-
this.set('$ref', $ref);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
export default Reference;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomDatamodel = require("@speclynx/apidom-datamodel");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class RequestBody extends _apidomDatamodel.ObjectElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'requestBody';
|
|
13
|
-
}
|
|
14
|
-
get description() {
|
|
15
|
-
return this.get('description');
|
|
16
|
-
}
|
|
17
|
-
set description(description) {
|
|
18
|
-
this.set('description', description);
|
|
19
|
-
}
|
|
20
|
-
get contentField() {
|
|
21
|
-
return this.get('content');
|
|
22
|
-
}
|
|
23
|
-
set contentField(content) {
|
|
24
|
-
this.set('content', content);
|
|
25
|
-
}
|
|
26
|
-
get required() {
|
|
27
|
-
if (this.hasKey('required')) {
|
|
28
|
-
return this.get('required');
|
|
29
|
-
}
|
|
30
|
-
return new _apidomDatamodel.BooleanElement(false);
|
|
31
|
-
}
|
|
32
|
-
set required(required) {
|
|
33
|
-
this.set('required', required);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
var _default = exports.default = RequestBody;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ObjectElement, BooleanElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class RequestBody extends ObjectElement {
|
|
7
|
-
constructor(content, meta, attributes) {
|
|
8
|
-
super(content, meta, attributes);
|
|
9
|
-
this.element = 'requestBody';
|
|
10
|
-
}
|
|
11
|
-
get description() {
|
|
12
|
-
return this.get('description');
|
|
13
|
-
}
|
|
14
|
-
set description(description) {
|
|
15
|
-
this.set('description', description);
|
|
16
|
-
}
|
|
17
|
-
get contentField() {
|
|
18
|
-
return this.get('content');
|
|
19
|
-
}
|
|
20
|
-
set contentField(content) {
|
|
21
|
-
this.set('content', content);
|
|
22
|
-
}
|
|
23
|
-
get required() {
|
|
24
|
-
if (this.hasKey('required')) {
|
|
25
|
-
return this.get('required');
|
|
26
|
-
}
|
|
27
|
-
return new BooleanElement(false);
|
|
28
|
-
}
|
|
29
|
-
set required(required) {
|
|
30
|
-
this.set('required', required);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
export default RequestBody;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomDatamodel = require("@speclynx/apidom-datamodel");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class Response extends _apidomDatamodel.ObjectElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'response';
|
|
13
|
-
}
|
|
14
|
-
get description() {
|
|
15
|
-
return this.get('description');
|
|
16
|
-
}
|
|
17
|
-
set description(description) {
|
|
18
|
-
this.set('description', description);
|
|
19
|
-
}
|
|
20
|
-
get headers() {
|
|
21
|
-
return this.get('headers');
|
|
22
|
-
}
|
|
23
|
-
set headers(headers) {
|
|
24
|
-
this.set('headers', headers);
|
|
25
|
-
}
|
|
26
|
-
get contentField() {
|
|
27
|
-
return this.get('content');
|
|
28
|
-
}
|
|
29
|
-
set contentField(content) {
|
|
30
|
-
this.set('content', content);
|
|
31
|
-
}
|
|
32
|
-
get linksField() {
|
|
33
|
-
return this.get('links');
|
|
34
|
-
}
|
|
35
|
-
set linksField(links) {
|
|
36
|
-
this.set('links', links);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
var _default = exports.default = Response;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class Response extends ObjectElement {
|
|
7
|
-
constructor(content, meta, attributes) {
|
|
8
|
-
super(content, meta, attributes);
|
|
9
|
-
this.element = 'response';
|
|
10
|
-
}
|
|
11
|
-
get description() {
|
|
12
|
-
return this.get('description');
|
|
13
|
-
}
|
|
14
|
-
set description(description) {
|
|
15
|
-
this.set('description', description);
|
|
16
|
-
}
|
|
17
|
-
get headers() {
|
|
18
|
-
return this.get('headers');
|
|
19
|
-
}
|
|
20
|
-
set headers(headers) {
|
|
21
|
-
this.set('headers', headers);
|
|
22
|
-
}
|
|
23
|
-
get contentField() {
|
|
24
|
-
return this.get('content');
|
|
25
|
-
}
|
|
26
|
-
set contentField(content) {
|
|
27
|
-
this.set('content', content);
|
|
28
|
-
}
|
|
29
|
-
get linksField() {
|
|
30
|
-
return this.get('links');
|
|
31
|
-
}
|
|
32
|
-
set linksField(links) {
|
|
33
|
-
this.set('links', links);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
export default Response;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomDatamodel = require("@speclynx/apidom-datamodel");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class Responses extends _apidomDatamodel.ObjectElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'responses';
|
|
13
|
-
}
|
|
14
|
-
get default() {
|
|
15
|
-
return this.get('default');
|
|
16
|
-
}
|
|
17
|
-
set default(defaultValue) {
|
|
18
|
-
this.set('default', defaultValue);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
var _default = exports.default = Responses;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
/**
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
class Responses extends ObjectElement {
|
|
6
|
-
constructor(content, meta, attributes) {
|
|
7
|
-
super(content, meta, attributes);
|
|
8
|
-
this.element = 'responses';
|
|
9
|
-
}
|
|
10
|
-
get default() {
|
|
11
|
-
return this.get('default');
|
|
12
|
-
}
|
|
13
|
-
set default(defaultValue) {
|
|
14
|
-
this.set('default', defaultValue);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
export default Responses;
|
package/src/elements/Schema.cjs
DELETED
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomError = require("@speclynx/apidom-error");
|
|
6
|
-
var _apidomNsJsonSchemaDraft = require("@speclynx/apidom-ns-json-schema-draft-4");
|
|
7
|
-
/**
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
10
|
-
class Schema extends _apidomNsJsonSchemaDraft.JSONSchemaElement {
|
|
11
|
-
constructor(content, meta, attributes) {
|
|
12
|
-
super(content, meta, attributes);
|
|
13
|
-
this.element = 'schema';
|
|
14
|
-
this.classes.push('json-schema-draft-4');
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Core vocabulary
|
|
19
|
-
*
|
|
20
|
-
* URI: https://tools.ietf.org/html/draft-wright-json-schema-00
|
|
21
|
-
*/
|
|
22
|
-
get idField() {
|
|
23
|
-
throw new _apidomError.UnsupportedOperationError('idField getter in Schema class is not not supported.');
|
|
24
|
-
}
|
|
25
|
-
set idField(idField) {
|
|
26
|
-
throw new _apidomError.UnsupportedOperationError('idField setter in Schema class is not not supported.');
|
|
27
|
-
}
|
|
28
|
-
get $schema() {
|
|
29
|
-
throw new _apidomError.UnsupportedOperationError('$schema getter in Schema class is not not supported.');
|
|
30
|
-
}
|
|
31
|
-
set $schema($schema) {
|
|
32
|
-
throw new _apidomError.UnsupportedOperationError('$schema setter in Schema class is not not supported.');
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Validation keywords for arrays
|
|
37
|
-
*/
|
|
38
|
-
|
|
39
|
-
get additionalItems() {
|
|
40
|
-
return this.get('additionalItems');
|
|
41
|
-
}
|
|
42
|
-
set additionalItems(additionalItems) {
|
|
43
|
-
this.set('additionalItems', additionalItems);
|
|
44
|
-
}
|
|
45
|
-
get itemsField() {
|
|
46
|
-
return this.get('items');
|
|
47
|
-
}
|
|
48
|
-
set itemsField(items) {
|
|
49
|
-
this.set('items', items);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Validation keywords for objects
|
|
54
|
-
*/
|
|
55
|
-
|
|
56
|
-
get additionalProperties() {
|
|
57
|
-
return this.get('additionalProperties');
|
|
58
|
-
}
|
|
59
|
-
set additionalProperties(additionalProperties) {
|
|
60
|
-
this.set('additionalProperties', additionalProperties);
|
|
61
|
-
}
|
|
62
|
-
get patternProperties() {
|
|
63
|
-
throw new _apidomError.UnsupportedOperationError('patternProperties getter in Schema class is not not supported.');
|
|
64
|
-
}
|
|
65
|
-
set patternProperties(patternProperties) {
|
|
66
|
-
throw new _apidomError.UnsupportedOperationError('patternProperties setter in Schema class is not not supported.');
|
|
67
|
-
}
|
|
68
|
-
get dependencies() {
|
|
69
|
-
throw new _apidomError.UnsupportedOperationError('dependencies getter in Schema class is not not supported.');
|
|
70
|
-
}
|
|
71
|
-
set dependencies(dependencies) {
|
|
72
|
-
throw new _apidomError.UnsupportedOperationError('dependencies setter in Schema class is not not supported.');
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Validation keywords for any instance type
|
|
77
|
-
*/
|
|
78
|
-
|
|
79
|
-
get type() {
|
|
80
|
-
return this.get('type');
|
|
81
|
-
}
|
|
82
|
-
set type(type) {
|
|
83
|
-
this.set('type', type);
|
|
84
|
-
}
|
|
85
|
-
get not() {
|
|
86
|
-
return this.get('not');
|
|
87
|
-
}
|
|
88
|
-
set not(not) {
|
|
89
|
-
this.set('not', not);
|
|
90
|
-
}
|
|
91
|
-
get definitions() {
|
|
92
|
-
throw new _apidomError.UnsupportedOperationError('definitions getter in Schema class is not not supported.');
|
|
93
|
-
}
|
|
94
|
-
set definitions(definitions) {
|
|
95
|
-
throw new _apidomError.UnsupportedOperationError('definitions setter in Schema class is not not supported.');
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* JSON Hyper-Schema
|
|
100
|
-
*
|
|
101
|
-
* URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
|
|
102
|
-
*/
|
|
103
|
-
|
|
104
|
-
get base() {
|
|
105
|
-
throw new _apidomError.UnsupportedOperationError('base getter in Schema class is not not supported.');
|
|
106
|
-
}
|
|
107
|
-
set base(base) {
|
|
108
|
-
throw new _apidomError.UnsupportedOperationError('base setter in Schema class is not not supported.');
|
|
109
|
-
}
|
|
110
|
-
get linksField() {
|
|
111
|
-
throw new _apidomError.UnsupportedOperationError('linksField getter in Schema class is not not supported.');
|
|
112
|
-
}
|
|
113
|
-
set linksField(links) {
|
|
114
|
-
throw new _apidomError.UnsupportedOperationError('linksField setter in Schema class is not not supported.');
|
|
115
|
-
}
|
|
116
|
-
get media() {
|
|
117
|
-
throw new _apidomError.UnsupportedOperationError('media getter in Schema class is not not supported.');
|
|
118
|
-
}
|
|
119
|
-
set media(media) {
|
|
120
|
-
throw new _apidomError.UnsupportedOperationError('media setter in Schema class is not not supported.');
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* OpenAPI vocabulary
|
|
125
|
-
*/
|
|
126
|
-
|
|
127
|
-
get nullable() {
|
|
128
|
-
return this.get('nullable');
|
|
129
|
-
}
|
|
130
|
-
set nullable(nullable) {
|
|
131
|
-
this.set('nullable', nullable);
|
|
132
|
-
}
|
|
133
|
-
get discriminator() {
|
|
134
|
-
return this.get('discriminator');
|
|
135
|
-
}
|
|
136
|
-
set discriminator(discriminator) {
|
|
137
|
-
this.set('discriminator', discriminator);
|
|
138
|
-
}
|
|
139
|
-
get writeOnly() {
|
|
140
|
-
return this.get('writeOnly');
|
|
141
|
-
}
|
|
142
|
-
set writeOnly(writeOnly) {
|
|
143
|
-
this.set('writeOnly', writeOnly);
|
|
144
|
-
}
|
|
145
|
-
get xml() {
|
|
146
|
-
return this.get('xml');
|
|
147
|
-
}
|
|
148
|
-
set xml(xml) {
|
|
149
|
-
this.set('xml', xml);
|
|
150
|
-
}
|
|
151
|
-
get externalDocs() {
|
|
152
|
-
return this.get('externalDocs');
|
|
153
|
-
}
|
|
154
|
-
set externalDocs(externalDocs) {
|
|
155
|
-
this.set('externalDocs', externalDocs);
|
|
156
|
-
}
|
|
157
|
-
get example() {
|
|
158
|
-
return this.get('example');
|
|
159
|
-
}
|
|
160
|
-
set example(example) {
|
|
161
|
-
this.set('example', example);
|
|
162
|
-
}
|
|
163
|
-
get deprecated() {
|
|
164
|
-
return this.get('deprecated');
|
|
165
|
-
}
|
|
166
|
-
set deprecated(deprecated) {
|
|
167
|
-
this.set('deprecated', deprecated);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
var _default = exports.default = Schema;
|
package/src/elements/Schema.mjs
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { UnsupportedOperationError } from '@speclynx/apidom-error';
|
|
2
|
-
import { JSONSchemaElement } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class Schema extends JSONSchemaElement {
|
|
7
|
-
constructor(content, meta, attributes) {
|
|
8
|
-
super(content, meta, attributes);
|
|
9
|
-
this.element = 'schema';
|
|
10
|
-
this.classes.push('json-schema-draft-4');
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Core vocabulary
|
|
15
|
-
*
|
|
16
|
-
* URI: https://tools.ietf.org/html/draft-wright-json-schema-00
|
|
17
|
-
*/
|
|
18
|
-
get idField() {
|
|
19
|
-
throw new UnsupportedOperationError('idField getter in Schema class is not not supported.');
|
|
20
|
-
}
|
|
21
|
-
set idField(idField) {
|
|
22
|
-
throw new UnsupportedOperationError('idField setter in Schema class is not not supported.');
|
|
23
|
-
}
|
|
24
|
-
get $schema() {
|
|
25
|
-
throw new UnsupportedOperationError('$schema getter in Schema class is not not supported.');
|
|
26
|
-
}
|
|
27
|
-
set $schema($schema) {
|
|
28
|
-
throw new UnsupportedOperationError('$schema setter in Schema class is not not supported.');
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Validation keywords for arrays
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
get additionalItems() {
|
|
36
|
-
return this.get('additionalItems');
|
|
37
|
-
}
|
|
38
|
-
set additionalItems(additionalItems) {
|
|
39
|
-
this.set('additionalItems', additionalItems);
|
|
40
|
-
}
|
|
41
|
-
get itemsField() {
|
|
42
|
-
return this.get('items');
|
|
43
|
-
}
|
|
44
|
-
set itemsField(items) {
|
|
45
|
-
this.set('items', items);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Validation keywords for objects
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
|
-
get additionalProperties() {
|
|
53
|
-
return this.get('additionalProperties');
|
|
54
|
-
}
|
|
55
|
-
set additionalProperties(additionalProperties) {
|
|
56
|
-
this.set('additionalProperties', additionalProperties);
|
|
57
|
-
}
|
|
58
|
-
get patternProperties() {
|
|
59
|
-
throw new UnsupportedOperationError('patternProperties getter in Schema class is not not supported.');
|
|
60
|
-
}
|
|
61
|
-
set patternProperties(patternProperties) {
|
|
62
|
-
throw new UnsupportedOperationError('patternProperties setter in Schema class is not not supported.');
|
|
63
|
-
}
|
|
64
|
-
get dependencies() {
|
|
65
|
-
throw new UnsupportedOperationError('dependencies getter in Schema class is not not supported.');
|
|
66
|
-
}
|
|
67
|
-
set dependencies(dependencies) {
|
|
68
|
-
throw new UnsupportedOperationError('dependencies setter in Schema class is not not supported.');
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Validation keywords for any instance type
|
|
73
|
-
*/
|
|
74
|
-
|
|
75
|
-
get type() {
|
|
76
|
-
return this.get('type');
|
|
77
|
-
}
|
|
78
|
-
set type(type) {
|
|
79
|
-
this.set('type', type);
|
|
80
|
-
}
|
|
81
|
-
get not() {
|
|
82
|
-
return this.get('not');
|
|
83
|
-
}
|
|
84
|
-
set not(not) {
|
|
85
|
-
this.set('not', not);
|
|
86
|
-
}
|
|
87
|
-
get definitions() {
|
|
88
|
-
throw new UnsupportedOperationError('definitions getter in Schema class is not not supported.');
|
|
89
|
-
}
|
|
90
|
-
set definitions(definitions) {
|
|
91
|
-
throw new UnsupportedOperationError('definitions setter in Schema class is not not supported.');
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* JSON Hyper-Schema
|
|
96
|
-
*
|
|
97
|
-
* URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
|
|
98
|
-
*/
|
|
99
|
-
|
|
100
|
-
get base() {
|
|
101
|
-
throw new UnsupportedOperationError('base getter in Schema class is not not supported.');
|
|
102
|
-
}
|
|
103
|
-
set base(base) {
|
|
104
|
-
throw new UnsupportedOperationError('base setter in Schema class is not not supported.');
|
|
105
|
-
}
|
|
106
|
-
get linksField() {
|
|
107
|
-
throw new UnsupportedOperationError('linksField getter in Schema class is not not supported.');
|
|
108
|
-
}
|
|
109
|
-
set linksField(links) {
|
|
110
|
-
throw new UnsupportedOperationError('linksField setter in Schema class is not not supported.');
|
|
111
|
-
}
|
|
112
|
-
get media() {
|
|
113
|
-
throw new UnsupportedOperationError('media getter in Schema class is not not supported.');
|
|
114
|
-
}
|
|
115
|
-
set media(media) {
|
|
116
|
-
throw new UnsupportedOperationError('media setter in Schema class is not not supported.');
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* OpenAPI vocabulary
|
|
121
|
-
*/
|
|
122
|
-
|
|
123
|
-
get nullable() {
|
|
124
|
-
return this.get('nullable');
|
|
125
|
-
}
|
|
126
|
-
set nullable(nullable) {
|
|
127
|
-
this.set('nullable', nullable);
|
|
128
|
-
}
|
|
129
|
-
get discriminator() {
|
|
130
|
-
return this.get('discriminator');
|
|
131
|
-
}
|
|
132
|
-
set discriminator(discriminator) {
|
|
133
|
-
this.set('discriminator', discriminator);
|
|
134
|
-
}
|
|
135
|
-
get writeOnly() {
|
|
136
|
-
return this.get('writeOnly');
|
|
137
|
-
}
|
|
138
|
-
set writeOnly(writeOnly) {
|
|
139
|
-
this.set('writeOnly', writeOnly);
|
|
140
|
-
}
|
|
141
|
-
get xml() {
|
|
142
|
-
return this.get('xml');
|
|
143
|
-
}
|
|
144
|
-
set xml(xml) {
|
|
145
|
-
this.set('xml', xml);
|
|
146
|
-
}
|
|
147
|
-
get externalDocs() {
|
|
148
|
-
return this.get('externalDocs');
|
|
149
|
-
}
|
|
150
|
-
set externalDocs(externalDocs) {
|
|
151
|
-
this.set('externalDocs', externalDocs);
|
|
152
|
-
}
|
|
153
|
-
get example() {
|
|
154
|
-
return this.get('example');
|
|
155
|
-
}
|
|
156
|
-
set example(example) {
|
|
157
|
-
this.set('example', example);
|
|
158
|
-
}
|
|
159
|
-
get deprecated() {
|
|
160
|
-
return this.get('deprecated');
|
|
161
|
-
}
|
|
162
|
-
set deprecated(deprecated) {
|
|
163
|
-
this.set('deprecated', deprecated);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
export default Schema;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomDatamodel = require("@speclynx/apidom-datamodel");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class SecurityRequirement extends _apidomDatamodel.ObjectElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'securityRequirement';
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
var _default = exports.default = SecurityRequirement;
|