@tsed/schema 7.83.3 → 8.0.0-alpha.10
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/lib/browser/schema.umd.min.js +1 -1
- package/lib/browser/schema.umd.min.js.map +1 -1
- package/lib/esm/components/async-api/channelsMapper.js.map +1 -1
- package/lib/esm/components/async-api/generate.js.map +1 -1
- package/lib/esm/components/async-api/messageMapper.js.map +1 -1
- package/lib/esm/components/async-api/payloadMapper.js.map +1 -1
- package/lib/esm/components/async-api/responseMapper.js.map +1 -1
- package/lib/esm/components/default/anyMapper.js.map +1 -1
- package/lib/esm/components/default/classMapper.js.map +1 -1
- package/lib/esm/components/default/genericsMapper.js.map +1 -1
- package/lib/esm/components/default/inheritedClassMapper.js.map +1 -1
- package/lib/esm/components/default/inlineEnumsMapper.js.map +1 -1
- package/lib/esm/components/default/lazyRefMapper.js.map +1 -1
- package/lib/esm/components/default/mapMapper.js +1 -1
- package/lib/esm/components/default/mapMapper.js.map +1 -1
- package/lib/esm/components/default/nullableMapper.js.map +1 -1
- package/lib/esm/components/default/objectMapper.js.map +1 -1
- package/lib/esm/components/default/ofMapper.js.map +1 -1
- package/lib/esm/components/default/propertiesMapper.js.map +1 -1
- package/lib/esm/components/default/requiredMapper.js.map +1 -1
- package/lib/esm/components/default/schemaMapper.js.map +1 -1
- package/lib/esm/components/open-spec/generate.js.map +1 -1
- package/lib/esm/components/open-spec/nullableMapper.js.map +1 -1
- package/lib/esm/components/open-spec/operationInFilesMapper.js.map +1 -1
- package/lib/esm/components/open-spec/operationInParameterMapper.js.map +1 -1
- package/lib/esm/components/open-spec/operationInQueryMapper.js.map +1 -1
- package/lib/esm/components/open-spec/operationMapper.js.map +1 -1
- package/lib/esm/components/open-spec/operationRequestBodyMapper.js.map +1 -1
- package/lib/esm/components/open-spec/operationResponseMapper.js.map +1 -1
- package/lib/esm/components/open-spec/pathsMapper.js.map +1 -1
- package/lib/esm/constants/OperationVerbs.js +0 -4
- package/lib/esm/constants/OperationVerbs.js.map +1 -1
- package/lib/esm/constants/httpStatusMessages.js +1 -1
- package/lib/esm/constants/httpStatusMessages.js.map +1 -1
- package/lib/esm/decorators/class/children.js.map +1 -1
- package/lib/esm/decorators/class/discriminatorValue.js.map +1 -1
- package/lib/esm/decorators/collections/collectionOf.js.map +1 -1
- package/lib/esm/decorators/collections/maxItems.js.map +1 -1
- package/lib/esm/decorators/collections/maxProperties.js.map +1 -1
- package/lib/esm/decorators/collections/minItems.js.map +1 -1
- package/lib/esm/decorators/collections/minProperties.js.map +1 -1
- package/lib/esm/decorators/common/allow.js.map +1 -1
- package/lib/esm/decorators/common/any.js.map +1 -1
- package/lib/esm/decorators/common/const.js.map +1 -1
- package/lib/esm/decorators/common/defaultMsg.js.map +1 -1
- package/lib/esm/decorators/common/description.js.map +1 -1
- package/lib/esm/decorators/common/discriminatorKey.js.map +1 -1
- package/lib/esm/decorators/common/enum.js.map +1 -1
- package/lib/esm/decorators/common/examples.js.map +1 -1
- package/lib/esm/decorators/common/format.js.map +1 -1
- package/lib/esm/decorators/common/groups.js.map +1 -1
- package/lib/esm/decorators/common/ignore.js +2 -1
- package/lib/esm/decorators/common/ignore.js.map +1 -1
- package/lib/esm/decorators/common/integer.js.map +1 -1
- package/lib/esm/decorators/common/jsonEntityFn.js.map +1 -1
- package/lib/esm/decorators/common/maxLength.js.map +1 -1
- package/lib/esm/decorators/common/minLength.js.map +1 -1
- package/lib/esm/decorators/common/multipleOf.js.map +1 -1
- package/lib/esm/decorators/common/name.js.map +1 -1
- package/lib/esm/decorators/common/nullable.js.map +1 -1
- package/lib/esm/decorators/common/optional.js.map +1 -1
- package/lib/esm/decorators/common/property.js.map +1 -1
- package/lib/esm/decorators/common/requiredGroups.js.map +1 -1
- package/lib/esm/decorators/common/typeError.js.map +1 -1
- package/lib/esm/decorators/config/jsonEntityComponent.js.map +1 -1
- package/lib/esm/decorators/generics/genericOf.js.map +1 -1
- package/lib/esm/decorators/operations/acceptMime.js.map +1 -1
- package/lib/esm/decorators/operations/consumes.js.map +1 -1
- package/lib/esm/decorators/operations/deprecated.js.map +1 -1
- package/lib/esm/decorators/operations/header.js.map +1 -1
- package/lib/esm/decorators/operations/in.js.map +1 -1
- package/lib/esm/decorators/operations/inFile.js +2 -2
- package/lib/esm/decorators/operations/inFile.js.map +1 -1
- package/lib/esm/decorators/operations/operation.js.map +1 -1
- package/lib/esm/decorators/operations/operationId.js.map +1 -1
- package/lib/esm/decorators/operations/operationPath.js.map +1 -1
- package/lib/esm/decorators/operations/path.js.map +1 -1
- package/lib/esm/decorators/operations/produces.js.map +1 -1
- package/lib/esm/decorators/operations/redirect.js.map +1 -1
- package/lib/esm/decorators/operations/returns.js.map +1 -1
- package/lib/esm/decorators/operations/route.js +0 -4
- package/lib/esm/decorators/operations/route.js.map +1 -1
- package/lib/esm/decorators/operations/security.js.map +1 -1
- package/lib/esm/decorators/operations/status.js +1 -2
- package/lib/esm/decorators/operations/status.js.map +1 -1
- package/lib/esm/decorators/operations/summary.js.map +1 -1
- package/lib/esm/decorators/operations/tags.js.map +1 -1
- package/lib/esm/domain/DecoratorContext.js.map +1 -1
- package/lib/esm/domain/JsonClassStore.js +1 -1
- package/lib/esm/domain/JsonClassStore.js.map +1 -1
- package/lib/esm/domain/JsonEntityStore.js.map +1 -1
- package/lib/esm/domain/JsonLazyRef.js.map +1 -1
- package/lib/esm/domain/JsonMap.js.map +1 -1
- package/lib/esm/domain/JsonMedia.js.map +1 -1
- package/lib/esm/domain/JsonMethodStore.js.map +1 -1
- package/lib/esm/domain/JsonOperation.js.map +1 -1
- package/lib/esm/domain/JsonOperationRoute.js.map +1 -1
- package/lib/esm/domain/JsonParameter.js.map +1 -1
- package/lib/esm/domain/JsonParameterStore.js +1 -1
- package/lib/esm/domain/JsonParameterStore.js.map +1 -1
- package/lib/esm/domain/JsonPropertyStore.js +1 -1
- package/lib/esm/domain/JsonPropertyStore.js.map +1 -1
- package/lib/esm/domain/JsonRequestBody.js.map +1 -1
- package/lib/esm/domain/JsonResponse.js.map +1 -1
- package/lib/esm/domain/JsonSchema.js.map +1 -1
- package/lib/esm/hooks/alterIgnore.js.map +1 -1
- package/lib/esm/hooks/alterOneOf.js.map +1 -1
- package/lib/esm/hooks/alterRequiredGroups.js.map +1 -1
- package/lib/esm/registries/JsonSchemaMapperContainer.js.map +1 -1
- package/lib/esm/utils/concatPath.js.map +1 -1
- package/lib/esm/utils/from.js.map +1 -1
- package/lib/esm/utils/generateSpec.js.map +1 -1
- package/lib/esm/utils/generics.js.map +1 -1
- package/lib/esm/utils/getComputedType.js.map +1 -1
- package/lib/esm/utils/getInheritedStores.js.map +1 -1
- package/lib/esm/utils/getJsonEntityStore.js +3 -3
- package/lib/esm/utils/getJsonEntityStore.js.map +1 -1
- package/lib/esm/utils/getJsonPathParameters.js.map +1 -1
- package/lib/esm/utils/getJsonSchema.js +1 -1
- package/lib/esm/utils/getJsonSchema.js.map +1 -1
- package/lib/esm/utils/getJsonType.js.map +1 -1
- package/lib/esm/utils/getOperationsRoutes.js.map +1 -1
- package/lib/esm/utils/getOperationsStores.js.map +1 -1
- package/lib/esm/utils/getPropertiesStores.js.map +1 -1
- package/lib/esm/utils/getSpec.js.map +1 -1
- package/lib/esm/utils/getSpecType.js.map +1 -1
- package/lib/esm/utils/mapHeaders.js.map +1 -1
- package/lib/esm/utils/mapOpenSpec.js +1 -1
- package/lib/esm/utils/mapOpenSpec.js.map +1 -1
- package/lib/esm/utils/mapOpenSpec2.js.map +1 -1
- package/lib/esm/utils/mapOpenSpec3.js.map +1 -1
- package/lib/esm/utils/mapOperationOptions.js.map +1 -1
- package/lib/esm/utils/matchGroups.js.map +1 -1
- package/lib/esm/utils/mergeSpec.js +1 -1
- package/lib/esm/utils/mergeSpec.js.map +1 -1
- package/lib/esm/utils/operationIdFormatter.js.map +1 -1
- package/lib/esm/utils/ref.js.map +1 -1
- package/lib/esm/utils/serializeEnumValues.js.map +1 -1
- package/lib/esm/utils/somethingOf.js.map +1 -1
- package/lib/esm/utils/transformToOS2.js.map +1 -1
- package/lib/esm/utils/withErrorMsg.js.map +1 -1
- package/lib/types/constants/OperationVerbs.d.ts +1 -5
- package/lib/types/decorators/common/ignore.d.ts +2 -1
- package/lib/types/decorators/operations/returns.d.ts +1 -2
- package/lib/types/decorators/operations/route.d.ts +0 -5
- package/lib/types/decorators/operations/status.d.ts +1 -2
- package/lib/types/domain/JsonClassStore.d.ts +1 -1
- package/lib/types/domain/JsonPropertyStore.d.ts +1 -1
- package/lib/types/utils/getJsonEntityStore.d.ts +3 -3
- package/lib/types/utils/getJsonSchema.d.ts +1 -1
- package/package.json +24 -20
- package/lib/cjs/components/async-api/channelsMapper.js +0 -62
- package/lib/cjs/components/async-api/channelsMapper.js.map +0 -1
- package/lib/cjs/components/async-api/generate.js +0 -20
- package/lib/cjs/components/async-api/generate.js.map +0 -1
- package/lib/cjs/components/async-api/messageMapper.js +0 -44
- package/lib/cjs/components/async-api/messageMapper.js.map +0 -1
- package/lib/cjs/components/async-api/payloadMapper.js +0 -52
- package/lib/cjs/components/async-api/payloadMapper.js.map +0 -1
- package/lib/cjs/components/async-api/responseMapper.js +0 -58
- package/lib/cjs/components/async-api/responseMapper.js.map +0 -1
- package/lib/cjs/components/default/anyMapper.js +0 -29
- package/lib/cjs/components/default/anyMapper.js.map +0 -1
- package/lib/cjs/components/default/classMapper.js +0 -43
- package/lib/cjs/components/default/classMapper.js.map +0 -1
- package/lib/cjs/components/default/genericsMapper.js +0 -62
- package/lib/cjs/components/default/genericsMapper.js.map +0 -1
- package/lib/cjs/components/default/inheritedClassMapper.js +0 -22
- package/lib/cjs/components/default/inheritedClassMapper.js.map +0 -1
- package/lib/cjs/components/default/inlineEnumsMapper.js +0 -16
- package/lib/cjs/components/default/inlineEnumsMapper.js.map +0 -1
- package/lib/cjs/components/default/itemMapper.js +0 -10
- package/lib/cjs/components/default/itemMapper.js.map +0 -1
- package/lib/cjs/components/default/lazyRefMapper.js +0 -18
- package/lib/cjs/components/default/lazyRefMapper.js.map +0 -1
- package/lib/cjs/components/default/mapMapper.js +0 -25
- package/lib/cjs/components/default/mapMapper.js.map +0 -1
- package/lib/cjs/components/default/nullableMapper.js +0 -54
- package/lib/cjs/components/default/nullableMapper.js.map +0 -1
- package/lib/cjs/components/default/objectMapper.js +0 -30
- package/lib/cjs/components/default/objectMapper.js.map +0 -1
- package/lib/cjs/components/default/ofMapper.js +0 -17
- package/lib/cjs/components/default/ofMapper.js.map +0 -1
- package/lib/cjs/components/default/propertiesMapper.js +0 -25
- package/lib/cjs/components/default/propertiesMapper.js.map +0 -1
- package/lib/cjs/components/default/requiredMapper.js +0 -56
- package/lib/cjs/components/default/requiredMapper.js.map +0 -1
- package/lib/cjs/components/default/schemaMapper.js +0 -124
- package/lib/cjs/components/default/schemaMapper.js.map +0 -1
- package/lib/cjs/components/index.js +0 -37
- package/lib/cjs/components/index.js.map +0 -1
- package/lib/cjs/components/open-spec/generate.js +0 -24
- package/lib/cjs/components/open-spec/generate.js.map +0 -1
- package/lib/cjs/components/open-spec/nullableMapper.js +0 -49
- package/lib/cjs/components/open-spec/nullableMapper.js.map +0 -1
- package/lib/cjs/components/open-spec/operationInFilesMapper.js +0 -28
- package/lib/cjs/components/open-spec/operationInFilesMapper.js.map +0 -1
- package/lib/cjs/components/open-spec/operationInParameterMapper.js +0 -39
- package/lib/cjs/components/open-spec/operationInParameterMapper.js.map +0 -1
- package/lib/cjs/components/open-spec/operationInParametersMapper.js +0 -10
- package/lib/cjs/components/open-spec/operationInParametersMapper.js.map +0 -1
- package/lib/cjs/components/open-spec/operationInQueryMapper.js +0 -61
- package/lib/cjs/components/open-spec/operationInQueryMapper.js.map +0 -1
- package/lib/cjs/components/open-spec/operationMapper.js +0 -49
- package/lib/cjs/components/open-spec/operationMapper.js.map +0 -1
- package/lib/cjs/components/open-spec/operationMediaMapper.js +0 -11
- package/lib/cjs/components/open-spec/operationMediaMapper.js.map +0 -1
- package/lib/cjs/components/open-spec/operationRequestBodyMapper.js +0 -67
- package/lib/cjs/components/open-spec/operationRequestBodyMapper.js.map +0 -1
- package/lib/cjs/components/open-spec/operationResponseMapper.js +0 -24
- package/lib/cjs/components/open-spec/operationResponseMapper.js.map +0 -1
- package/lib/cjs/components/open-spec/pathsMapper.js +0 -95
- package/lib/cjs/components/open-spec/pathsMapper.js.map +0 -1
- package/lib/cjs/constants/OperationVerbs.js +0 -36
- package/lib/cjs/constants/OperationVerbs.js.map +0 -1
- package/lib/cjs/constants/httpStatusMessages.js +0 -24
- package/lib/cjs/constants/httpStatusMessages.js.map +0 -1
- package/lib/cjs/constants/jsonSchemaProperties.js +0 -21
- package/lib/cjs/constants/jsonSchemaProperties.js.map +0 -1
- package/lib/cjs/decorators/class/children.js +0 -24
- package/lib/cjs/decorators/class/children.js.map +0 -1
- package/lib/cjs/decorators/class/discriminatorValue.js +0 -56
- package/lib/cjs/decorators/class/discriminatorValue.js.map +0 -1
- package/lib/cjs/decorators/collections/collectionContains.js +0 -29
- package/lib/cjs/decorators/collections/collectionContains.js.map +0 -1
- package/lib/cjs/decorators/collections/collectionOf.js +0 -102
- package/lib/cjs/decorators/collections/collectionOf.js.map +0 -1
- package/lib/cjs/decorators/collections/maxItems.js +0 -61
- package/lib/cjs/decorators/collections/maxItems.js.map +0 -1
- package/lib/cjs/decorators/collections/maxProperties.js +0 -84
- package/lib/cjs/decorators/collections/maxProperties.js.map +0 -1
- package/lib/cjs/decorators/collections/minItems.js +0 -65
- package/lib/cjs/decorators/collections/minItems.js.map +0 -1
- package/lib/cjs/decorators/collections/minProperties.js +0 -83
- package/lib/cjs/decorators/collections/minProperties.js.map +0 -1
- package/lib/cjs/decorators/collections/uniqueItems.js +0 -61
- package/lib/cjs/decorators/collections/uniqueItems.js.map +0 -1
- package/lib/cjs/decorators/common/additionalProperties.js +0 -20
- package/lib/cjs/decorators/common/additionalProperties.js.map +0 -1
- package/lib/cjs/decorators/common/allOf.js +0 -22
- package/lib/cjs/decorators/common/allOf.js.map +0 -1
- package/lib/cjs/decorators/common/allow.js +0 -47
- package/lib/cjs/decorators/common/allow.js.map +0 -1
- package/lib/cjs/decorators/common/any.js +0 -46
- package/lib/cjs/decorators/common/any.js.map +0 -1
- package/lib/cjs/decorators/common/anyOf.js +0 -26
- package/lib/cjs/decorators/common/anyOf.js.map +0 -1
- package/lib/cjs/decorators/common/const.js +0 -70
- package/lib/cjs/decorators/common/const.js.map +0 -1
- package/lib/cjs/decorators/common/customKey.js +0 -43
- package/lib/cjs/decorators/common/customKey.js.map +0 -1
- package/lib/cjs/decorators/common/default.js +0 -51
- package/lib/cjs/decorators/common/default.js.map +0 -1
- package/lib/cjs/decorators/common/defaultMsg.js +0 -41
- package/lib/cjs/decorators/common/defaultMsg.js.map +0 -1
- package/lib/cjs/decorators/common/description.js +0 -75
- package/lib/cjs/decorators/common/description.js.map +0 -1
- package/lib/cjs/decorators/common/discriminatorKey.js +0 -13
- package/lib/cjs/decorators/common/discriminatorKey.js.map +0 -1
- package/lib/cjs/decorators/common/enum.js +0 -109
- package/lib/cjs/decorators/common/enum.js.map +0 -1
- package/lib/cjs/decorators/common/errorMsg.js +0 -18
- package/lib/cjs/decorators/common/errorMsg.js.map +0 -1
- package/lib/cjs/decorators/common/example.js +0 -21
- package/lib/cjs/decorators/common/example.js.map +0 -1
- package/lib/cjs/decorators/common/examples.js +0 -21
- package/lib/cjs/decorators/common/examples.js.map +0 -1
- package/lib/cjs/decorators/common/exclusiveMaximum.js +0 -78
- package/lib/cjs/decorators/common/exclusiveMaximum.js.map +0 -1
- package/lib/cjs/decorators/common/exclusiveMinimum.js +0 -78
- package/lib/cjs/decorators/common/exclusiveMinimum.js.map +0 -1
- package/lib/cjs/decorators/common/format.js +0 -487
- package/lib/cjs/decorators/common/format.js.map +0 -1
- package/lib/cjs/decorators/common/forwardGroups.js +0 -20
- package/lib/cjs/decorators/common/forwardGroups.js.map +0 -1
- package/lib/cjs/decorators/common/groups.js +0 -49
- package/lib/cjs/decorators/common/groups.js.map +0 -1
- package/lib/cjs/decorators/common/hidden.js +0 -40
- package/lib/cjs/decorators/common/hidden.js.map +0 -1
- package/lib/cjs/decorators/common/ignore.js +0 -68
- package/lib/cjs/decorators/common/ignore.js.map +0 -1
- package/lib/cjs/decorators/common/integer.js +0 -71
- package/lib/cjs/decorators/common/integer.js.map +0 -1
- package/lib/cjs/decorators/common/jsonEntityFn.js +0 -32
- package/lib/cjs/decorators/common/jsonEntityFn.js.map +0 -1
- package/lib/cjs/decorators/common/maxLength.js +0 -90
- package/lib/cjs/decorators/common/maxLength.js.map +0 -1
- package/lib/cjs/decorators/common/maximum.js +0 -149
- package/lib/cjs/decorators/common/maximum.js.map +0 -1
- package/lib/cjs/decorators/common/minLength.js +0 -91
- package/lib/cjs/decorators/common/minLength.js.map +0 -1
- package/lib/cjs/decorators/common/minimum.js +0 -147
- package/lib/cjs/decorators/common/minimum.js.map +0 -1
- package/lib/cjs/decorators/common/multipleOf.js +0 -82
- package/lib/cjs/decorators/common/multipleOf.js.map +0 -1
- package/lib/cjs/decorators/common/name.js +0 -52
- package/lib/cjs/decorators/common/name.js.map +0 -1
- package/lib/cjs/decorators/common/nullable.js +0 -34
- package/lib/cjs/decorators/common/nullable.js.map +0 -1
- package/lib/cjs/decorators/common/oneOf.js +0 -27
- package/lib/cjs/decorators/common/oneOf.js.map +0 -1
- package/lib/cjs/decorators/common/optional.js +0 -28
- package/lib/cjs/decorators/common/optional.js.map +0 -1
- package/lib/cjs/decorators/common/pattern.js +0 -104
- package/lib/cjs/decorators/common/pattern.js.map +0 -1
- package/lib/cjs/decorators/common/property.js +0 -27
- package/lib/cjs/decorators/common/property.js.map +0 -1
- package/lib/cjs/decorators/common/readOnly.js +0 -21
- package/lib/cjs/decorators/common/readOnly.js.map +0 -1
- package/lib/cjs/decorators/common/recordOf.js +0 -63
- package/lib/cjs/decorators/common/recordOf.js.map +0 -1
- package/lib/cjs/decorators/common/required.js +0 -53
- package/lib/cjs/decorators/common/required.js.map +0 -1
- package/lib/cjs/decorators/common/requiredGroups.js +0 -26
- package/lib/cjs/decorators/common/requiredGroups.js.map +0 -1
- package/lib/cjs/decorators/common/schema.js +0 -66
- package/lib/cjs/decorators/common/schema.js.map +0 -1
- package/lib/cjs/decorators/common/title.js +0 -49
- package/lib/cjs/decorators/common/title.js.map +0 -1
- package/lib/cjs/decorators/common/typeError.js +0 -18
- package/lib/cjs/decorators/common/typeError.js.map +0 -1
- package/lib/cjs/decorators/common/writeOnly.js +0 -21
- package/lib/cjs/decorators/common/writeOnly.js.map +0 -1
- package/lib/cjs/decorators/config/jsonEntityComponent.js +0 -18
- package/lib/cjs/decorators/config/jsonEntityComponent.js.map +0 -1
- package/lib/cjs/decorators/generics/genericOf.js +0 -99
- package/lib/cjs/decorators/generics/genericOf.js.map +0 -1
- package/lib/cjs/decorators/generics/generics.js +0 -25
- package/lib/cjs/decorators/generics/generics.js.map +0 -1
- package/lib/cjs/decorators/operations/acceptMime.js +0 -28
- package/lib/cjs/decorators/operations/acceptMime.js.map +0 -1
- package/lib/cjs/decorators/operations/consumes.js +0 -39
- package/lib/cjs/decorators/operations/consumes.js.map +0 -1
- package/lib/cjs/decorators/operations/contentType.js +0 -28
- package/lib/cjs/decorators/operations/contentType.js.map +0 -1
- package/lib/cjs/decorators/operations/deprecated.js +0 -49
- package/lib/cjs/decorators/operations/deprecated.js.map +0 -1
- package/lib/cjs/decorators/operations/header.js +0 -63
- package/lib/cjs/decorators/operations/header.js.map +0 -1
- package/lib/cjs/decorators/operations/in.js +0 -80
- package/lib/cjs/decorators/operations/in.js.map +0 -1
- package/lib/cjs/decorators/operations/inFile.js +0 -45
- package/lib/cjs/decorators/operations/inFile.js.map +0 -1
- package/lib/cjs/decorators/operations/location.js +0 -29
- package/lib/cjs/decorators/operations/location.js.map +0 -1
- package/lib/cjs/decorators/operations/operation.js +0 -48
- package/lib/cjs/decorators/operations/operation.js.map +0 -1
- package/lib/cjs/decorators/operations/operationId.js +0 -24
- package/lib/cjs/decorators/operations/operationId.js.map +0 -1
- package/lib/cjs/decorators/operations/operationPath.js +0 -34
- package/lib/cjs/decorators/operations/operationPath.js.map +0 -1
- package/lib/cjs/decorators/operations/partial.js +0 -18
- package/lib/cjs/decorators/operations/partial.js.map +0 -1
- package/lib/cjs/decorators/operations/path.js +0 -29
- package/lib/cjs/decorators/operations/path.js.map +0 -1
- package/lib/cjs/decorators/operations/produces.js +0 -46
- package/lib/cjs/decorators/operations/produces.js.map +0 -1
- package/lib/cjs/decorators/operations/publish.js +0 -10
- package/lib/cjs/decorators/operations/publish.js.map +0 -1
- package/lib/cjs/decorators/operations/redirect.js +0 -25
- package/lib/cjs/decorators/operations/redirect.js.map +0 -1
- package/lib/cjs/decorators/operations/returns.js +0 -293
- package/lib/cjs/decorators/operations/returns.js.map +0 -1
- package/lib/cjs/decorators/operations/route.js +0 -162
- package/lib/cjs/decorators/operations/route.js.map +0 -1
- package/lib/cjs/decorators/operations/security.js +0 -31
- package/lib/cjs/decorators/operations/security.js.map +0 -1
- package/lib/cjs/decorators/operations/status.js +0 -133
- package/lib/cjs/decorators/operations/status.js.map +0 -1
- package/lib/cjs/decorators/operations/subscribe.js +0 -10
- package/lib/cjs/decorators/operations/subscribe.js.map +0 -1
- package/lib/cjs/decorators/operations/summary.js +0 -34
- package/lib/cjs/decorators/operations/summary.js.map +0 -1
- package/lib/cjs/decorators/operations/tags.js +0 -52
- package/lib/cjs/decorators/operations/tags.js.map +0 -1
- package/lib/cjs/decorators/operations/view.js +0 -31
- package/lib/cjs/decorators/operations/view.js.map +0 -1
- package/lib/cjs/domain/DecoratorContext.js +0 -88
- package/lib/cjs/domain/DecoratorContext.js.map +0 -1
- package/lib/cjs/domain/JsonAliasMap.js +0 -15
- package/lib/cjs/domain/JsonAliasMap.js.map +0 -1
- package/lib/cjs/domain/JsonClassStore.js +0 -37
- package/lib/cjs/domain/JsonClassStore.js.map +0 -1
- package/lib/cjs/domain/JsonDiscriminator.js +0 -38
- package/lib/cjs/domain/JsonDiscriminator.js.map +0 -1
- package/lib/cjs/domain/JsonEntityStore.js +0 -158
- package/lib/cjs/domain/JsonEntityStore.js.map +0 -1
- package/lib/cjs/domain/JsonFormatTypes.js +0 -22
- package/lib/cjs/domain/JsonFormatTypes.js.map +0 -1
- package/lib/cjs/domain/JsonLazyRef.js +0 -22
- package/lib/cjs/domain/JsonLazyRef.js.map +0 -1
- package/lib/cjs/domain/JsonMap.js +0 -29
- package/lib/cjs/domain/JsonMap.js.map +0 -1
- package/lib/cjs/domain/JsonMedia.js +0 -21
- package/lib/cjs/domain/JsonMedia.js.map +0 -1
- package/lib/cjs/domain/JsonMethodStore.js +0 -147
- package/lib/cjs/domain/JsonMethodStore.js.map +0 -1
- package/lib/cjs/domain/JsonOperation.js +0 -156
- package/lib/cjs/domain/JsonOperation.js.map +0 -1
- package/lib/cjs/domain/JsonOperationPathsMap.js +0 -19
- package/lib/cjs/domain/JsonOperationPathsMap.js.map +0 -1
- package/lib/cjs/domain/JsonOperationRoute.js +0 -54
- package/lib/cjs/domain/JsonOperationRoute.js.map +0 -1
- package/lib/cjs/domain/JsonParameter.js +0 -50
- package/lib/cjs/domain/JsonParameter.js.map +0 -1
- package/lib/cjs/domain/JsonParameterStore.js +0 -99
- package/lib/cjs/domain/JsonParameterStore.js.map +0 -1
- package/lib/cjs/domain/JsonParameterTypes.js +0 -27
- package/lib/cjs/domain/JsonParameterTypes.js.map +0 -1
- package/lib/cjs/domain/JsonPropertyStore.js +0 -80
- package/lib/cjs/domain/JsonPropertyStore.js.map +0 -1
- package/lib/cjs/domain/JsonRequestBody.js +0 -34
- package/lib/cjs/domain/JsonRequestBody.js.map +0 -1
- package/lib/cjs/domain/JsonResponse.js +0 -45
- package/lib/cjs/domain/JsonResponse.js.map +0 -1
- package/lib/cjs/domain/JsonSchema.js +0 -822
- package/lib/cjs/domain/JsonSchema.js.map +0 -1
- package/lib/cjs/domain/SpecTypes.js +0 -11
- package/lib/cjs/domain/SpecTypes.js.map +0 -1
- package/lib/cjs/hooks/alterIgnore.js +0 -24
- package/lib/cjs/hooks/alterIgnore.js.map +0 -1
- package/lib/cjs/hooks/alterOneOf.js +0 -50
- package/lib/cjs/hooks/alterOneOf.js.map +0 -1
- package/lib/cjs/hooks/alterRequiredGroups.js +0 -14
- package/lib/cjs/hooks/alterRequiredGroups.js.map +0 -1
- package/lib/cjs/index.js +0 -186
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/interfaces/IgnoreCallback.js +0 -3
- package/lib/cjs/interfaces/IgnoreCallback.js.map +0 -1
- package/lib/cjs/interfaces/JsonHookContext.js +0 -3
- package/lib/cjs/interfaces/JsonHookContext.js.map +0 -1
- package/lib/cjs/interfaces/JsonOpenSpec.js +0 -3
- package/lib/cjs/interfaces/JsonOpenSpec.js.map +0 -1
- package/lib/cjs/interfaces/JsonSchemaOptions.js +0 -3
- package/lib/cjs/interfaces/JsonSchemaOptions.js.map +0 -1
- package/lib/cjs/package.json +0 -3
- package/lib/cjs/registries/JsonSchemaMapperContainer.js +0 -43
- package/lib/cjs/registries/JsonSchemaMapperContainer.js.map +0 -1
- package/lib/cjs/registries/enumRegistries.js +0 -5
- package/lib/cjs/registries/enumRegistries.js.map +0 -1
- package/lib/cjs/utils/buildPath.js +0 -13
- package/lib/cjs/utils/buildPath.js.map +0 -1
- package/lib/cjs/utils/concatParameters.js +0 -16
- package/lib/cjs/utils/concatParameters.js.map +0 -1
- package/lib/cjs/utils/concatPath.js +0 -23
- package/lib/cjs/utils/concatPath.js.map +0 -1
- package/lib/cjs/utils/defineStatusModel.js +0 -13
- package/lib/cjs/utils/defineStatusModel.js.map +0 -1
- package/lib/cjs/utils/from.js +0 -280
- package/lib/cjs/utils/from.js.map +0 -1
- package/lib/cjs/utils/generateSpec.js +0 -47
- package/lib/cjs/utils/generateSpec.js.map +0 -1
- package/lib/cjs/utils/generics.js +0 -40
- package/lib/cjs/utils/generics.js.map +0 -1
- package/lib/cjs/utils/getComputedType.js +0 -26
- package/lib/cjs/utils/getComputedType.js.map +0 -1
- package/lib/cjs/utils/getInheritedStores.js +0 -23
- package/lib/cjs/utils/getInheritedStores.js.map +0 -1
- package/lib/cjs/utils/getJsonEntityStore.js +0 -18
- package/lib/cjs/utils/getJsonEntityStore.js.map +0 -1
- package/lib/cjs/utils/getJsonPathParameters.js +0 -87
- package/lib/cjs/utils/getJsonPathParameters.js.map +0 -1
- package/lib/cjs/utils/getJsonSchema.js +0 -59
- package/lib/cjs/utils/getJsonSchema.js.map +0 -1
- package/lib/cjs/utils/getJsonType.js +0 -40
- package/lib/cjs/utils/getJsonType.js.map +0 -1
- package/lib/cjs/utils/getOperationsRoutes.js +0 -37
- package/lib/cjs/utils/getOperationsRoutes.js.map +0 -1
- package/lib/cjs/utils/getOperationsStores.js +0 -33
- package/lib/cjs/utils/getOperationsStores.js.map +0 -1
- package/lib/cjs/utils/getPropertiesStores.js +0 -45
- package/lib/cjs/utils/getPropertiesStores.js.map +0 -1
- package/lib/cjs/utils/getSpec.js +0 -79
- package/lib/cjs/utils/getSpec.js.map +0 -1
- package/lib/cjs/utils/getSpecType.js +0 -21
- package/lib/cjs/utils/getSpecType.js.map +0 -1
- package/lib/cjs/utils/isSuccessStatus.js +0 -8
- package/lib/cjs/utils/isSuccessStatus.js.map +0 -1
- package/lib/cjs/utils/mapHeaders.js +0 -29
- package/lib/cjs/utils/mapHeaders.js.map +0 -1
- package/lib/cjs/utils/mapOpenSpec.js +0 -41
- package/lib/cjs/utils/mapOpenSpec.js.map +0 -1
- package/lib/cjs/utils/mapOpenSpec2.js +0 -34
- package/lib/cjs/utils/mapOpenSpec2.js.map +0 -1
- package/lib/cjs/utils/mapOpenSpec3.js +0 -26
- package/lib/cjs/utils/mapOpenSpec3.js.map +0 -1
- package/lib/cjs/utils/mapOpenSpecInfo.js +0 -21
- package/lib/cjs/utils/mapOpenSpecInfo.js.map +0 -1
- package/lib/cjs/utils/mapOperationOptions.js +0 -31
- package/lib/cjs/utils/mapOperationOptions.js.map +0 -1
- package/lib/cjs/utils/matchGroups.js +0 -56
- package/lib/cjs/utils/matchGroups.js.map +0 -1
- package/lib/cjs/utils/mergeSpec.js +0 -51
- package/lib/cjs/utils/mergeSpec.js.map +0 -1
- package/lib/cjs/utils/operationIdFormatter.js +0 -41
- package/lib/cjs/utils/operationIdFormatter.js.map +0 -1
- package/lib/cjs/utils/ref.js +0 -55
- package/lib/cjs/utils/ref.js.map +0 -1
- package/lib/cjs/utils/removeHiddenOperation.js +0 -8
- package/lib/cjs/utils/removeHiddenOperation.js.map +0 -1
- package/lib/cjs/utils/serializeEnumValues.js +0 -26
- package/lib/cjs/utils/serializeEnumValues.js.map +0 -1
- package/lib/cjs/utils/somethingOf.js +0 -16
- package/lib/cjs/utils/somethingOf.js.map +0 -1
- package/lib/cjs/utils/toJsonMapCollection.js +0 -15
- package/lib/cjs/utils/toJsonMapCollection.js.map +0 -1
- package/lib/cjs/utils/toJsonRegex.js +0 -12
- package/lib/cjs/utils/toJsonRegex.js.map +0 -1
- package/lib/cjs/utils/transformToOS2.js +0 -509
- package/lib/cjs/utils/transformToOS2.js.map +0 -1
- package/lib/cjs/utils/withErrorMsg.js +0 -34
- package/lib/cjs/utils/withErrorMsg.js.map +0 -1
- package/lib/esm/package.json +0 -3
- package/lib/types-esm/components/async-api/channelsMapper.d.ts +0 -2
- package/lib/types-esm/components/async-api/generate.d.ts +0 -1
- package/lib/types-esm/components/async-api/messageMapper.d.ts +0 -6
- package/lib/types-esm/components/async-api/payloadMapper.d.ts +0 -4
- package/lib/types-esm/components/async-api/responseMapper.d.ts +0 -6
- package/lib/types-esm/components/default/anyMapper.d.ts +0 -2
- package/lib/types-esm/components/default/classMapper.d.ts +0 -3
- package/lib/types-esm/components/default/genericsMapper.d.ts +0 -5
- package/lib/types-esm/components/default/inheritedClassMapper.d.ts +0 -5
- package/lib/types-esm/components/default/inlineEnumsMapper.d.ts +0 -3
- package/lib/types-esm/components/default/itemMapper.d.ts +0 -2
- package/lib/types-esm/components/default/lazyRefMapper.d.ts +0 -3
- package/lib/types-esm/components/default/mapMapper.d.ts +0 -9
- package/lib/types-esm/components/default/nullableMapper.d.ts +0 -2
- package/lib/types-esm/components/default/objectMapper.d.ts +0 -8
- package/lib/types-esm/components/default/ofMapper.d.ts +0 -3
- package/lib/types-esm/components/default/propertiesMapper.d.ts +0 -3
- package/lib/types-esm/components/default/requiredMapper.d.ts +0 -3
- package/lib/types-esm/components/default/schemaMapper.d.ts +0 -3
- package/lib/types-esm/components/index.d.ts +0 -33
- package/lib/types-esm/components/open-spec/generate.d.ts +0 -1
- package/lib/types-esm/components/open-spec/nullableMapper.d.ts +0 -2
- package/lib/types-esm/components/open-spec/operationInFilesMapper.d.ts +0 -2
- package/lib/types-esm/components/open-spec/operationInParameterMapper.d.ts +0 -10
- package/lib/types-esm/components/open-spec/operationInParametersMapper.d.ts +0 -3
- package/lib/types-esm/components/open-spec/operationInQueryMapper.d.ts +0 -2
- package/lib/types-esm/components/open-spec/operationMapper.d.ts +0 -3
- package/lib/types-esm/components/open-spec/operationMediaMapper.d.ts +0 -3
- package/lib/types-esm/components/open-spec/operationRequestBodyMapper.d.ts +0 -3
- package/lib/types-esm/components/open-spec/operationResponseMapper.d.ts +0 -3
- package/lib/types-esm/components/open-spec/pathsMapper.d.ts +0 -2
- package/lib/types-esm/constants/OperationVerbs.d.ts +0 -20
- package/lib/types-esm/constants/httpStatusMessages.d.ts +0 -11
- package/lib/types-esm/constants/jsonSchemaProperties.d.ts +0 -7
- package/lib/types-esm/decorators/class/children.d.ts +0 -11
- package/lib/types-esm/decorators/class/discriminatorValue.d.ts +0 -42
- package/lib/types-esm/decorators/collections/collectionContains.d.ts +0 -21
- package/lib/types-esm/decorators/collections/collectionOf.d.ts +0 -101
- package/lib/types-esm/decorators/collections/maxItems.d.ts +0 -48
- package/lib/types-esm/decorators/collections/maxProperties.d.ts +0 -71
- package/lib/types-esm/decorators/collections/minItems.d.ts +0 -52
- package/lib/types-esm/decorators/collections/minProperties.d.ts +0 -70
- package/lib/types-esm/decorators/collections/uniqueItems.d.ts +0 -51
- package/lib/types-esm/decorators/common/additionalProperties.d.ts +0 -11
- package/lib/types-esm/decorators/common/allOf.d.ts +0 -13
- package/lib/types-esm/decorators/common/allow.d.ts +0 -28
- package/lib/types-esm/decorators/common/any.d.ts +0 -38
- package/lib/types-esm/decorators/common/anyOf.d.ts +0 -17
- package/lib/types-esm/decorators/common/const.d.ts +0 -61
- package/lib/types-esm/decorators/common/customKey.d.ts +0 -26
- package/lib/types-esm/decorators/common/default.d.ts +0 -41
- package/lib/types-esm/decorators/common/defaultMsg.d.ts +0 -32
- package/lib/types-esm/decorators/common/description.d.ts +0 -53
- package/lib/types-esm/decorators/common/discriminatorKey.d.ts +0 -1
- package/lib/types-esm/decorators/common/enum.d.ts +0 -101
- package/lib/types-esm/decorators/common/errorMsg.d.ts +0 -6
- package/lib/types-esm/decorators/common/example.d.ts +0 -11
- package/lib/types-esm/decorators/common/examples.d.ts +0 -12
- package/lib/types-esm/decorators/common/exclusiveMaximum.d.ts +0 -70
- package/lib/types-esm/decorators/common/exclusiveMinimum.d.ts +0 -70
- package/lib/types-esm/decorators/common/format.d.ts +0 -466
- package/lib/types-esm/decorators/common/forwardGroups.d.ts +0 -10
- package/lib/types-esm/decorators/common/groups.d.ts +0 -12
- package/lib/types-esm/decorators/common/hidden.d.ts +0 -32
- package/lib/types-esm/decorators/common/ignore.d.ts +0 -59
- package/lib/types-esm/decorators/common/integer.d.ts +0 -61
- package/lib/types-esm/decorators/common/jsonEntityFn.d.ts +0 -21
- package/lib/types-esm/decorators/common/maxLength.d.ts +0 -77
- package/lib/types-esm/decorators/common/maximum.d.ts +0 -139
- package/lib/types-esm/decorators/common/minLength.d.ts +0 -78
- package/lib/types-esm/decorators/common/minimum.d.ts +0 -137
- package/lib/types-esm/decorators/common/multipleOf.d.ts +0 -69
- package/lib/types-esm/decorators/common/name.d.ts +0 -32
- package/lib/types-esm/decorators/common/nullable.d.ts +0 -25
- package/lib/types-esm/decorators/common/oneOf.d.ts +0 -17
- package/lib/types-esm/decorators/common/optional.d.ts +0 -10
- package/lib/types-esm/decorators/common/pattern.d.ts +0 -94
- package/lib/types-esm/decorators/common/property.d.ts +0 -11
- package/lib/types-esm/decorators/common/readOnly.d.ts +0 -11
- package/lib/types-esm/decorators/common/recordOf.d.ts +0 -46
- package/lib/types-esm/decorators/common/required.d.ts +0 -44
- package/lib/types-esm/decorators/common/requiredGroups.d.ts +0 -10
- package/lib/types-esm/decorators/common/schema.d.ts +0 -53
- package/lib/types-esm/decorators/common/title.d.ts +0 -39
- package/lib/types-esm/decorators/common/typeError.d.ts +0 -8
- package/lib/types-esm/decorators/common/writeOnly.d.ts +0 -11
- package/lib/types-esm/decorators/config/jsonEntityComponent.d.ts +0 -10
- package/lib/types-esm/decorators/generics/genericOf.d.ts +0 -76
- package/lib/types-esm/decorators/generics/generics.d.ts +0 -14
- package/lib/types-esm/decorators/operations/acceptMime.d.ts +0 -19
- package/lib/types-esm/decorators/operations/consumes.d.ts +0 -19
- package/lib/types-esm/decorators/operations/contentType.d.ts +0 -20
- package/lib/types-esm/decorators/operations/deprecated.d.ts +0 -23
- package/lib/types-esm/decorators/operations/header.d.ts +0 -49
- package/lib/types-esm/decorators/operations/in.d.ts +0 -64
- package/lib/types-esm/decorators/operations/inFile.d.ts +0 -25
- package/lib/types-esm/decorators/operations/location.d.ts +0 -22
- package/lib/types-esm/decorators/operations/operation.d.ts +0 -60
- package/lib/types-esm/decorators/operations/operationId.d.ts +0 -10
- package/lib/types-esm/decorators/operations/operationPath.d.ts +0 -21
- package/lib/types-esm/decorators/operations/partial.d.ts +0 -10
- package/lib/types-esm/decorators/operations/path.d.ts +0 -15
- package/lib/types-esm/decorators/operations/produces.d.ts +0 -26
- package/lib/types-esm/decorators/operations/publish.d.ts +0 -1
- package/lib/types-esm/decorators/operations/redirect.d.ts +0 -52
- package/lib/types-esm/decorators/operations/returns.d.ts +0 -267
- package/lib/types-esm/decorators/operations/route.d.ts +0 -133
- package/lib/types-esm/decorators/operations/security.d.ts +0 -56
- package/lib/types-esm/decorators/operations/status.d.ts +0 -127
- package/lib/types-esm/decorators/operations/subscribe.d.ts +0 -1
- package/lib/types-esm/decorators/operations/summary.d.ts +0 -20
- package/lib/types-esm/decorators/operations/tags.d.ts +0 -23
- package/lib/types-esm/decorators/operations/view.d.ts +0 -23
- package/lib/types-esm/domain/DecoratorContext.d.ts +0 -28
- package/lib/types-esm/domain/JsonAliasMap.d.ts +0 -12
- package/lib/types-esm/domain/JsonClassStore.d.ts +0 -12
- package/lib/types-esm/domain/JsonDiscriminator.d.ts +0 -18
- package/lib/types-esm/domain/JsonEntityStore.d.ts +0 -110
- package/lib/types-esm/domain/JsonFormatTypes.d.ts +0 -17
- package/lib/types-esm/domain/JsonLazyRef.d.ts +0 -9
- package/lib/types-esm/domain/JsonMap.d.ts +0 -9
- package/lib/types-esm/domain/JsonMedia.d.ts +0 -11
- package/lib/types-esm/domain/JsonMethodStore.d.ts +0 -92
- package/lib/types-esm/domain/JsonOperation.d.ts +0 -51
- package/lib/types-esm/domain/JsonOperationPathsMap.d.ts +0 -7
- package/lib/types-esm/domain/JsonOperationRoute.d.ts +0 -25
- package/lib/types-esm/domain/JsonParameter.d.ts +0 -22
- package/lib/types-esm/domain/JsonParameterStore.d.ts +0 -52
- package/lib/types-esm/domain/JsonParameterTypes.d.ts +0 -16
- package/lib/types-esm/domain/JsonPropertyStore.d.ts +0 -32
- package/lib/types-esm/domain/JsonRequestBody.d.ts +0 -12
- package/lib/types-esm/domain/JsonResponse.d.ts +0 -18
- package/lib/types-esm/domain/JsonSchema.d.ts +0 -340
- package/lib/types-esm/domain/SpecTypes.d.ts +0 -6
- package/lib/types-esm/hooks/alterIgnore.d.ts +0 -10
- package/lib/types-esm/hooks/alterOneOf.d.ts +0 -3
- package/lib/types-esm/hooks/alterRequiredGroups.d.ts +0 -6
- package/lib/types-esm/index.d.ts +0 -182
- package/lib/types-esm/interfaces/IgnoreCallback.d.ts +0 -4
- package/lib/types-esm/interfaces/JsonHookContext.d.ts +0 -17
- package/lib/types-esm/interfaces/JsonOpenSpec.d.ts +0 -9
- package/lib/types-esm/interfaces/JsonSchemaOptions.d.ts +0 -30
- package/lib/types-esm/registries/JsonSchemaMapperContainer.d.ts +0 -21
- package/lib/types-esm/registries/enumRegistries.d.ts +0 -2
- package/lib/types-esm/utils/buildPath.d.ts +0 -6
- package/lib/types-esm/utils/concatParameters.d.ts +0 -4
- package/lib/types-esm/utils/concatPath.d.ts +0 -1
- package/lib/types-esm/utils/defineStatusModel.d.ts +0 -3
- package/lib/types-esm/utils/from.d.ts +0 -190
- package/lib/types-esm/utils/generateSpec.d.ts +0 -16
- package/lib/types-esm/utils/generics.d.ts +0 -50
- package/lib/types-esm/utils/getComputedType.d.ts +0 -5
- package/lib/types-esm/utils/getInheritedStores.d.ts +0 -8
- package/lib/types-esm/utils/getJsonEntityStore.d.ts +0 -15
- package/lib/types-esm/utils/getJsonPathParameters.d.ts +0 -7
- package/lib/types-esm/utils/getJsonSchema.d.ts +0 -4
- package/lib/types-esm/utils/getJsonType.d.ts +0 -5
- package/lib/types-esm/utils/getOperationsRoutes.d.ts +0 -10
- package/lib/types-esm/utils/getOperationsStores.d.ts +0 -6
- package/lib/types-esm/utils/getPropertiesStores.d.ts +0 -20
- package/lib/types-esm/utils/getSpec.d.ts +0 -34
- package/lib/types-esm/utils/getSpecType.d.ts +0 -12
- package/lib/types-esm/utils/isSuccessStatus.d.ts +0 -2
- package/lib/types-esm/utils/mapHeaders.d.ts +0 -9
- package/lib/types-esm/utils/mapOpenSpec.d.ts +0 -10
- package/lib/types-esm/utils/mapOpenSpec2.d.ts +0 -9
- package/lib/types-esm/utils/mapOpenSpec3.d.ts +0 -8
- package/lib/types-esm/utils/mapOpenSpecInfo.d.ts +0 -6
- package/lib/types-esm/utils/mapOperationOptions.d.ts +0 -5
- package/lib/types-esm/utils/matchGroups.d.ts +0 -4
- package/lib/types-esm/utils/mergeSpec.d.ts +0 -23
- package/lib/types-esm/utils/operationIdFormatter.d.ts +0 -6
- package/lib/types-esm/utils/ref.d.ts +0 -14
- package/lib/types-esm/utils/removeHiddenOperation.d.ts +0 -2
- package/lib/types-esm/utils/serializeEnumValues.d.ts +0 -5
- package/lib/types-esm/utils/somethingOf.d.ts +0 -1
- package/lib/types-esm/utils/toJsonMapCollection.d.ts +0 -7
- package/lib/types-esm/utils/toJsonRegex.d.ts +0 -5
- package/lib/types-esm/utils/transformToOS2.d.ts +0 -25
- package/lib/types-esm/utils/withErrorMsg.d.ts +0 -6
- /package/{webpack.config.js → webpack.config.cjs} +0 -0
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The pattern and Pattern Properties keywords use regular expressions to express constraints.
|
|
3
|
-
* The regular expression syntax used is from JavaScript (ECMA 262, specifically). However, that complete syntax is not widely supported, therefore it is recommended that you stick to the subset of that syntax described below.
|
|
4
|
-
*
|
|
5
|
-
* ::: warning
|
|
6
|
-
* For v6 user, use @@Pattern@@ from @tsed/schema instead of @tsed/common.
|
|
7
|
-
* :::
|
|
8
|
-
*
|
|
9
|
-
* A single unicode character (other than the special characters below) matches itself.
|
|
10
|
-
*
|
|
11
|
-
* * `^`: Matches only at the beginning of the string.
|
|
12
|
-
* * `$`: Matches only at the end of the string.
|
|
13
|
-
* * `(...)`: Group a series of regular expressions into a single regular expression.
|
|
14
|
-
* * `|`: Matches either the regular expression preceding or following the | symbol.
|
|
15
|
-
* * `[abc]`: Matches any of the characters inside the square brackets.
|
|
16
|
-
* * `[a-z]`: Matches the range of characters.
|
|
17
|
-
* * `[^abc]`: Matches any character not listed.
|
|
18
|
-
* * `[^a-z]`: Matches any character outside of the range.
|
|
19
|
-
* * `+`: Matches one or more repetitions of the preceding regular expression.
|
|
20
|
-
* * `*`: Matches zero or more repetitions of the preceding regular expression.
|
|
21
|
-
* * `?`: Matches zero or one repetitions of the preceding regular expression.
|
|
22
|
-
* * `+?`, *?`, ??`: The `*`, `+`, and `?` qualifiers are all greedy; they match as much text as possible. Sometimes this behavior isn’t desired and you want to match as few characters as possible.
|
|
23
|
-
* * `{x}`: Match exactly x occurrences of the preceding regular expression.
|
|
24
|
-
* * `{x,y}`: Match at least x and at most y occurrences of the preceding regular expression.
|
|
25
|
-
* * `{x,}`: Match x occurrences or more of the preceding regular expression.
|
|
26
|
-
* * `{x}?`, {x,y}?, {x,}?`: Lazy versions of the above expressions.
|
|
27
|
-
*
|
|
28
|
-
* ## Example
|
|
29
|
-
*
|
|
30
|
-
* ```typescript
|
|
31
|
-
* class Model {
|
|
32
|
-
* @Pattern("^(\\([0-9]{3}\\))?[0-9]{3}-[0-9]{4}$")
|
|
33
|
-
* @Pattern(/^(\\([0-9]{3}\\))?[0-9]{3}-[0-9]{4}$/)
|
|
34
|
-
* property: string;
|
|
35
|
-
* }
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* ### With primitive type
|
|
39
|
-
*
|
|
40
|
-
* ```typescript
|
|
41
|
-
* class Model {
|
|
42
|
-
* @Pattern(/^(\\([0-9]{3}\\))?[0-9]{3}-[0-9]{4}$/)
|
|
43
|
-
* property: string;
|
|
44
|
-
* }
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* ```json
|
|
48
|
-
* {
|
|
49
|
-
* "type": "object",
|
|
50
|
-
* "properties": {
|
|
51
|
-
* "property": {
|
|
52
|
-
* "type": "string",
|
|
53
|
-
* "pattern": "^(\\([0-9]{3}\\))?[0-9]{3}-[0-9]{4}$"
|
|
54
|
-
* }
|
|
55
|
-
* }
|
|
56
|
-
* }
|
|
57
|
-
* ```
|
|
58
|
-
*
|
|
59
|
-
* ### With array type
|
|
60
|
-
*
|
|
61
|
-
* ```typescript
|
|
62
|
-
* class Model {
|
|
63
|
-
* @CollectionOf(string)
|
|
64
|
-
* @Pattern(/^(\\([0-9]{3}\\))?[0-9]{3}-[0-9]{4}$/)
|
|
65
|
-
* property: string[];
|
|
66
|
-
* }
|
|
67
|
-
* ```
|
|
68
|
-
*
|
|
69
|
-
* Will produce:
|
|
70
|
-
*
|
|
71
|
-
* ```json
|
|
72
|
-
* {
|
|
73
|
-
* "type": "object",
|
|
74
|
-
* "properties": {
|
|
75
|
-
* "property": {
|
|
76
|
-
* "type": "array",
|
|
77
|
-
* "items": {
|
|
78
|
-
* "type": "string",
|
|
79
|
-
* "pattern": "^(\\([0-9]{3}\\))?[0-9]{3}-[0-9]{4}$"
|
|
80
|
-
* }
|
|
81
|
-
* }
|
|
82
|
-
* }
|
|
83
|
-
* }
|
|
84
|
-
* ```
|
|
85
|
-
*
|
|
86
|
-
* @param {string} pattern
|
|
87
|
-
* @decorator
|
|
88
|
-
* @validation
|
|
89
|
-
* @swagger
|
|
90
|
-
* @schema
|
|
91
|
-
* @input
|
|
92
|
-
* @ajv-errors
|
|
93
|
-
*/
|
|
94
|
-
export declare const Pattern: import("../../utils/withErrorMsg.js").ErrorChainedDecorator<(pattern: string | RegExp) => (...args: any[]) => any>;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Constructs a json schema object type whose property keys are keys and whose property values are type.
|
|
3
|
-
*
|
|
4
|
-
* ## Example
|
|
5
|
-
*
|
|
6
|
-
* ```typescript
|
|
7
|
-
* type keys = 'one' | 'two';
|
|
8
|
-
*
|
|
9
|
-
* class Part {
|
|
10
|
-
* prop: string;
|
|
11
|
-
* }
|
|
12
|
-
*
|
|
13
|
-
* type Parts = Record<keys, Part>;
|
|
14
|
-
*
|
|
15
|
-
* class Test {
|
|
16
|
-
* @RecordOf(Part, 'one', 'two')
|
|
17
|
-
* parts: Parts;
|
|
18
|
-
* }
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* Will produce:
|
|
22
|
-
*
|
|
23
|
-
* ```json
|
|
24
|
-
* {
|
|
25
|
-
* "type": "object",
|
|
26
|
-
* "properties": {
|
|
27
|
-
* "one": {
|
|
28
|
-
* "$ref": "#/components/schemas/Part"
|
|
29
|
-
* },
|
|
30
|
-
* "two": {
|
|
31
|
-
* "$ref": "#/components/schemas/Part"
|
|
32
|
-
* },
|
|
33
|
-
* },
|
|
34
|
-
* }
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @param model
|
|
38
|
-
* @param keys
|
|
39
|
-
* @decorator
|
|
40
|
-
* @validation
|
|
41
|
-
* @swagger
|
|
42
|
-
* @schema
|
|
43
|
-
* @classDecorator
|
|
44
|
-
* @input
|
|
45
|
-
*/
|
|
46
|
-
export declare function RecordOf(model: any, ...keys: string[]): (...args: any[]) => any;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Add required annotation on Property or Parameter.
|
|
3
|
-
*
|
|
4
|
-
* The @@Required@@ decorator can be used on two cases.
|
|
5
|
-
*
|
|
6
|
-
* To decorate a parameters:
|
|
7
|
-
*
|
|
8
|
-
* ```typescript
|
|
9
|
-
* @Post("/")
|
|
10
|
-
* async method(@Required() @BodyParams("field") field: string) {}
|
|
11
|
-
* ```
|
|
12
|
-
*
|
|
13
|
-
* To decorate a model:
|
|
14
|
-
*
|
|
15
|
-
* ```typescript
|
|
16
|
-
* class Model {
|
|
17
|
-
* @Required()
|
|
18
|
-
* field: string;
|
|
19
|
-
* }
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* ::: tip
|
|
23
|
-
* Required will throw a BadRequest when the given value is `null`, an empty string or `undefined`.
|
|
24
|
-
* :::
|
|
25
|
-
*
|
|
26
|
-
* ### Allow values
|
|
27
|
-
*
|
|
28
|
-
* In some case, you didn't want trigger a BadRequest when the value is an empty string for example.
|
|
29
|
-
* The decorator `@Allow()`, allow you to configure a value list for which there will be no exception.
|
|
30
|
-
*
|
|
31
|
-
* ```typescript
|
|
32
|
-
* class Model {
|
|
33
|
-
* @Allow("") // add automatically required flag
|
|
34
|
-
* field: string;
|
|
35
|
-
* }
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @decorator
|
|
39
|
-
* @validation
|
|
40
|
-
* @swagger
|
|
41
|
-
* @schema
|
|
42
|
-
* @input
|
|
43
|
-
*/
|
|
44
|
-
export declare const Required: import("../../utils/withErrorMsg.js").ErrorChainedDecorator<(required?: boolean, ...allowedRequiredValues: any[]) => any>;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { JsonSchema, JsonSchemaObject } from "../../domain/JsonSchema.js";
|
|
2
|
-
import { SpecTypes } from "../../domain/SpecTypes.js";
|
|
3
|
-
/**
|
|
4
|
-
* Write data formatted to JsonSchema.
|
|
5
|
-
*
|
|
6
|
-
* ## Example
|
|
7
|
-
*
|
|
8
|
-
* ```typescript
|
|
9
|
-
* @Schema({title: "test"})
|
|
10
|
-
* class Model {
|
|
11
|
-
* @Schema({formatMinimum: "1987-10-24"})
|
|
12
|
-
* @Format("date")
|
|
13
|
-
* birthDate: Date
|
|
14
|
-
* }
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* Will produce:
|
|
18
|
-
*
|
|
19
|
-
* ```json
|
|
20
|
-
* {
|
|
21
|
-
* "type": "object",
|
|
22
|
-
* "title": "test",
|
|
23
|
-
* "properties": {
|
|
24
|
-
* "birthdate": {
|
|
25
|
-
* "type": "string",
|
|
26
|
-
* "format": "date",
|
|
27
|
-
* "formatMinimum": "1987-10-24"
|
|
28
|
-
* }
|
|
29
|
-
* }
|
|
30
|
-
* }
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* @param partialSchema
|
|
34
|
-
* @decorator
|
|
35
|
-
* @validation
|
|
36
|
-
* @swagger
|
|
37
|
-
* @schema
|
|
38
|
-
* @classDecorator
|
|
39
|
-
* @input
|
|
40
|
-
*/
|
|
41
|
-
export declare function Schema(partialSchema: Partial<JsonSchemaObject> | JsonSchema): (...args: any[]) => any;
|
|
42
|
-
/**
|
|
43
|
-
* Apply specific schema depending on the spec version
|
|
44
|
-
* @param specType
|
|
45
|
-
* @param schema
|
|
46
|
-
* @decorator
|
|
47
|
-
* @validation
|
|
48
|
-
* @swagger
|
|
49
|
-
* @schema
|
|
50
|
-
* @classDecorator
|
|
51
|
-
* @input
|
|
52
|
-
*/
|
|
53
|
-
export declare function For(specType: SpecTypes, schema: any): (...args: any[]) => any;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Add title metadata on the decorated element.
|
|
3
|
-
*
|
|
4
|
-
* ::: warning
|
|
5
|
-
* For v6 user, use @@Title@@ from @tsed/schema instead of @tsed/common.
|
|
6
|
-
* :::
|
|
7
|
-
*
|
|
8
|
-
* ## Example
|
|
9
|
-
*
|
|
10
|
-
* ```typescript
|
|
11
|
-
* class Model {
|
|
12
|
-
* @Title("title")
|
|
13
|
-
* id: string;
|
|
14
|
-
* }
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* Will produce:
|
|
18
|
-
*
|
|
19
|
-
* ```json
|
|
20
|
-
* {
|
|
21
|
-
* "type": "object",
|
|
22
|
-
* "properties": {
|
|
23
|
-
* "id": {
|
|
24
|
-
* "type": "string",
|
|
25
|
-
* "title": "title"
|
|
26
|
-
* }
|
|
27
|
-
* }
|
|
28
|
-
* }
|
|
29
|
-
* ```
|
|
30
|
-
*
|
|
31
|
-
* @param {string} title
|
|
32
|
-
* @decorator
|
|
33
|
-
* @validation
|
|
34
|
-
* @swagger
|
|
35
|
-
* @schema
|
|
36
|
-
* @classDecorator
|
|
37
|
-
* @input
|
|
38
|
-
*/
|
|
39
|
-
export declare function Title(title: string): (...args: any[]) => any;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DecoratorTypes, Type } from "@tsed/core";
|
|
2
|
-
import { JsonEntityStore } from "../../domain/JsonEntityStore.js";
|
|
3
|
-
/**
|
|
4
|
-
* Declare a new JsonEntityStore class for a specific decorator type.
|
|
5
|
-
*
|
|
6
|
-
* @ignore
|
|
7
|
-
* @param type
|
|
8
|
-
* @decorator
|
|
9
|
-
*/
|
|
10
|
-
export declare function JsonEntityComponent(type: DecoratorTypes): (target: Type<JsonEntityStore>) => void;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { GenericValue } from "../../utils/generics.js";
|
|
2
|
-
export interface GenericOfChainedDecorators {
|
|
3
|
-
(...args: any): any;
|
|
4
|
-
/**
|
|
5
|
-
* Declare a nested generic models
|
|
6
|
-
* @param generics
|
|
7
|
-
*/
|
|
8
|
-
Nested(...generics: GenericValue[]): this;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Set the types of a Generic class.
|
|
12
|
-
*
|
|
13
|
-
* ## Example
|
|
14
|
-
*
|
|
15
|
-
* ```typescript
|
|
16
|
-
* class Product {
|
|
17
|
-
* @Property()
|
|
18
|
-
* label: string;
|
|
19
|
-
* }
|
|
20
|
-
*
|
|
21
|
-
* @Generics("T")
|
|
22
|
-
* class Paginated<T> {
|
|
23
|
-
* @CollectionOf("T")
|
|
24
|
-
* data: T[];
|
|
25
|
-
*
|
|
26
|
-
* @Property()
|
|
27
|
-
* totalCount: number;
|
|
28
|
-
* }
|
|
29
|
-
*
|
|
30
|
-
* class Payload {
|
|
31
|
-
* @GenericOf(Product)
|
|
32
|
-
* products: Paginated<Product>;
|
|
33
|
-
* }
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* ## Example with nested generics
|
|
37
|
-
*
|
|
38
|
-
* ```typescript
|
|
39
|
-
* class Product {
|
|
40
|
-
* @Property()
|
|
41
|
-
* label: string;
|
|
42
|
-
* }
|
|
43
|
-
*
|
|
44
|
-
* @Generics("T")
|
|
45
|
-
* class Paginated<T> {
|
|
46
|
-
* @CollectionOf("T")
|
|
47
|
-
* data: T[];
|
|
48
|
-
*
|
|
49
|
-
* @Property()
|
|
50
|
-
* totalCount: number;
|
|
51
|
-
* }
|
|
52
|
-
*
|
|
53
|
-
* @Generics("D")
|
|
54
|
-
* class Submission<D> {
|
|
55
|
-
* @Property()
|
|
56
|
-
* _id: string;
|
|
57
|
-
*
|
|
58
|
-
* @Property("D")
|
|
59
|
-
* data: D;
|
|
60
|
-
* }
|
|
61
|
-
*
|
|
62
|
-
* class Payload {
|
|
63
|
-
* @GenericOf(Submissions).Nested(Product)
|
|
64
|
-
* submissions: Paginated<Submission<Product>>;
|
|
65
|
-
* }
|
|
66
|
-
* ```
|
|
67
|
-
*
|
|
68
|
-
* @param {Type<any>[]} generics
|
|
69
|
-
* @decorator
|
|
70
|
-
* @validation
|
|
71
|
-
* @swagger
|
|
72
|
-
* @schema
|
|
73
|
-
* @input
|
|
74
|
-
* @generics
|
|
75
|
-
*/
|
|
76
|
-
export declare function GenericOf(...generics: GenericValue[]): GenericOfChainedDecorators;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Define generics list. This list is used by @@GenericOf@@ and the @@getJsonSchema@@ function to build the correct JsonSchema.
|
|
3
|
-
*
|
|
4
|
-
* See @@GenericOf@@ decorator for more details.
|
|
5
|
-
*
|
|
6
|
-
* @param generics
|
|
7
|
-
* @decorator
|
|
8
|
-
* @validation
|
|
9
|
-
* @swagger
|
|
10
|
-
* @schema
|
|
11
|
-
* @input
|
|
12
|
-
* @generics
|
|
13
|
-
*/
|
|
14
|
-
export declare function Generics(...generics: string[]): (target: any) => void;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Set a mime list which are acceptable and checks if the specified content types are acceptable, based on the request’s Accept HTTP header field.
|
|
3
|
-
*
|
|
4
|
-
* ```typescript
|
|
5
|
-
* @Controller('/mypath')
|
|
6
|
-
* export class MyCtrl {
|
|
7
|
-
*
|
|
8
|
-
* @Get('/')
|
|
9
|
-
* @AcceptMime('application/json')
|
|
10
|
-
* public getResource(){}
|
|
11
|
-
* }
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* @param mimes
|
|
15
|
-
* @decorator
|
|
16
|
-
* @operation
|
|
17
|
-
* @response
|
|
18
|
-
*/
|
|
19
|
-
export declare function AcceptMime(...mimes: string[]): Function;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Add consumes metadata on the decorated element.
|
|
3
|
-
*
|
|
4
|
-
* ## Examples
|
|
5
|
-
*
|
|
6
|
-
* ```typescript
|
|
7
|
-
* class Model {
|
|
8
|
-
* @Consumes("application/x-www-form-urlencoded")
|
|
9
|
-
* id: string;
|
|
10
|
-
* }
|
|
11
|
-
* ```
|
|
12
|
-
*
|
|
13
|
-
* @param consumes
|
|
14
|
-
* @decorator
|
|
15
|
-
* @swagger
|
|
16
|
-
* @classDecorator
|
|
17
|
-
* @operation
|
|
18
|
-
*/
|
|
19
|
-
export declare function Consumes(...consumes: string[]): (...args: any[]) => any;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sets the Content-Type HTTP header to the MIME type as determined by mime.lookup() for the specified type.
|
|
3
|
-
* If type contains the “/” character, then it sets the `Content-Type` to type.
|
|
4
|
-
*
|
|
5
|
-
* ```typescript
|
|
6
|
-
* @ContentType('.html'); // => 'text/html'
|
|
7
|
-
* @ContentType('html'); // => 'text/html'
|
|
8
|
-
* @ContentType('json'); // => 'application/json'
|
|
9
|
-
* @ContentType('application/json'); // => 'application/json'
|
|
10
|
-
* @ContentType('png'); // => image/png
|
|
11
|
-
* private myMethod() {}
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* @param type
|
|
15
|
-
* @decorator
|
|
16
|
-
* @operation
|
|
17
|
-
* @response
|
|
18
|
-
* @headers
|
|
19
|
-
*/
|
|
20
|
-
export declare function ContentType(type: string): import("./returns.js").ReturnsChainedDecorators;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Add deprecated metadata on the decorated element.
|
|
3
|
-
*
|
|
4
|
-
* ## Examples
|
|
5
|
-
*
|
|
6
|
-
* ```typescript
|
|
7
|
-
*
|
|
8
|
-
* @Deprecated()
|
|
9
|
-
* class MyCtrl {
|
|
10
|
-
* @Deprecated()
|
|
11
|
-
* @Get("/")
|
|
12
|
-
* method(){
|
|
13
|
-
* }
|
|
14
|
-
* }
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* @param deprecated
|
|
18
|
-
* @decorator
|
|
19
|
-
* @swagger
|
|
20
|
-
* @schema
|
|
21
|
-
* @operation
|
|
22
|
-
*/
|
|
23
|
-
export declare function Deprecated(deprecated?: boolean): (...args: any[]) => any;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { JsonHeader, JsonHeaders } from "../../interfaces/JsonOpenSpec.js";
|
|
2
|
-
/**
|
|
3
|
-
* Sets the response’s HTTP header field to value. To set multiple fields at once, pass an object as the parameter.
|
|
4
|
-
*
|
|
5
|
-
* ```typescript
|
|
6
|
-
* @Header('Content-Type', 'text/plain');
|
|
7
|
-
* private myMethod() {}
|
|
8
|
-
*
|
|
9
|
-
* @Status(204)
|
|
10
|
-
* @Header({
|
|
11
|
-
* "Content-Type": "text/plain",
|
|
12
|
-
* "Content-Length": 123,
|
|
13
|
-
* "ETag": {
|
|
14
|
-
* "value": "12345",
|
|
15
|
-
* "description": "header description"
|
|
16
|
-
* }
|
|
17
|
-
* })
|
|
18
|
-
* private myMethod() {}
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* This example will produce the swagger responses object:
|
|
22
|
-
*
|
|
23
|
-
* ```json
|
|
24
|
-
* {
|
|
25
|
-
* "responses": {
|
|
26
|
-
* "204": {
|
|
27
|
-
* "description": "Description",
|
|
28
|
-
* "headers": {
|
|
29
|
-
* "Content-Type": {
|
|
30
|
-
* "type": "string"
|
|
31
|
-
* },
|
|
32
|
-
* "Content-Length": {
|
|
33
|
-
* "type": "number"
|
|
34
|
-
* },
|
|
35
|
-
* "ETag": {
|
|
36
|
-
* "type": "string",
|
|
37
|
-
* "description": "header description"
|
|
38
|
-
* }
|
|
39
|
-
* }
|
|
40
|
-
* }
|
|
41
|
-
* }
|
|
42
|
-
* }
|
|
43
|
-
* ```
|
|
44
|
-
*
|
|
45
|
-
* @decorator
|
|
46
|
-
* @operation
|
|
47
|
-
* @response
|
|
48
|
-
*/
|
|
49
|
-
export declare function Header(headers: string | number | JsonHeaders, value?: string | number | JsonHeader): Function;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Type } from "@tsed/core";
|
|
2
|
-
import { JsonParameterTypes } from "../../domain/JsonParameterTypes.js";
|
|
3
|
-
import { JsonSchema, JsonSchemaObject } from "../../domain/JsonSchema.js";
|
|
4
|
-
export interface InChainedDecorators {
|
|
5
|
-
<T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T> | void;
|
|
6
|
-
(target: Object, propertyKey: string | symbol, parameterIndex: number): void;
|
|
7
|
-
(target: Function): void;
|
|
8
|
-
/**
|
|
9
|
-
* Type of this in parameter
|
|
10
|
-
* @param type
|
|
11
|
-
*/
|
|
12
|
-
Type(type: Type<any>): this;
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @param name
|
|
16
|
-
*/
|
|
17
|
-
Name(name: string): this;
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @param description
|
|
21
|
-
*/
|
|
22
|
-
Description(description: string): this;
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @param required
|
|
26
|
-
*/
|
|
27
|
-
Required(required?: boolean): this;
|
|
28
|
-
/**
|
|
29
|
-
* Add pattern constraint. Only available for OPENAPI.
|
|
30
|
-
* @param pattern
|
|
31
|
-
*/
|
|
32
|
-
Pattern(pattern: string | RegExp): this;
|
|
33
|
-
/**
|
|
34
|
-
* Add custom schema.
|
|
35
|
-
* @param schema
|
|
36
|
-
*/
|
|
37
|
-
Schema(schema: Partial<JsonSchemaObject | JsonSchema>): this;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Add a input parameter.
|
|
41
|
-
*
|
|
42
|
-
* ::: warning
|
|
43
|
-
* Don't use decorator with Ts.ED application to decorate parameters. Use @@BodyParams@@, @@PathParams@@, etc... instead.
|
|
44
|
-
* But you can use this decorator on Method, to add extra in parameters like Authorization header.
|
|
45
|
-
*
|
|
46
|
-
* ```typescript
|
|
47
|
-
* @Controller("/")
|
|
48
|
-
* class MyController {
|
|
49
|
-
* @Get("/")
|
|
50
|
-
* @In("header").Type(String).Name("Authorization").Required()
|
|
51
|
-
* method() {
|
|
52
|
-
* }
|
|
53
|
-
* }
|
|
54
|
-
* ```
|
|
55
|
-
* :::
|
|
56
|
-
*
|
|
57
|
-
* @param inType
|
|
58
|
-
* @decorator
|
|
59
|
-
* @swagger
|
|
60
|
-
* @schema
|
|
61
|
-
* @input
|
|
62
|
-
* @operation
|
|
63
|
-
*/
|
|
64
|
-
export declare function In(inType: JsonParameterTypes | string): InChainedDecorators;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Add a input file parameter.
|
|
3
|
-
*
|
|
4
|
-
* ::: warning
|
|
5
|
-
* Don't use decorator with Ts.ED application to decorate parameters. Use @@BodyParams@@, @@PathParams@@, etc... instead.
|
|
6
|
-
* But you can use this decorator on Method, to add extra in parameters like Authorization header.
|
|
7
|
-
*
|
|
8
|
-
* ```typescript
|
|
9
|
-
* @Controller("/")
|
|
10
|
-
* class MyController {
|
|
11
|
-
* @Post("/")
|
|
12
|
-
* method(@InFile("file1") file: any) {
|
|
13
|
-
* }
|
|
14
|
-
* }
|
|
15
|
-
* ```
|
|
16
|
-
* :::
|
|
17
|
-
*
|
|
18
|
-
* @decorator
|
|
19
|
-
* @swagger
|
|
20
|
-
* @schema
|
|
21
|
-
* @input
|
|
22
|
-
* @operation
|
|
23
|
-
* @param name
|
|
24
|
-
*/
|
|
25
|
-
export declare function InFile(name: string): ParameterDecorator;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { JsonHeader } from "../../interfaces/JsonOpenSpec.js";
|
|
2
|
-
/**
|
|
3
|
-
* Sets the response Location HTTP header to the specified path parameter.
|
|
4
|
-
*
|
|
5
|
-
* ```typescript
|
|
6
|
-
* @Location('/foo/bar', {description: 'Location to the next step'})
|
|
7
|
-
* @Location('http://example.com')
|
|
8
|
-
* @Location('back')
|
|
9
|
-
* private myMethod() {
|
|
10
|
-
*
|
|
11
|
-
* }
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* A path value of “back” has a special meaning, it refers to the URL specified in the `Referer` header of the request. If the `Referer` header was not specified, it refers to “/”.
|
|
15
|
-
*
|
|
16
|
-
* @param location
|
|
17
|
-
* @param meta
|
|
18
|
-
* @returns {Function}
|
|
19
|
-
* @decorator
|
|
20
|
-
* @operation
|
|
21
|
-
*/
|
|
22
|
-
export declare function Location(location: string, meta?: JsonHeader): import("./returns.js").ReturnsChainedDecorators;
|