@tsed/schema 7.0.0-alpha.1 → 7.0.0-beta.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/jest.config.js +14 -0
- package/lib/cjs/components/anyMapper.js +23 -0
- package/lib/cjs/components/anyMapper.js.map +1 -0
- package/lib/cjs/components/classMapper.js +41 -0
- package/lib/cjs/components/classMapper.js.map +1 -0
- package/lib/cjs/components/genericsMapper.js +62 -0
- package/lib/cjs/components/genericsMapper.js.map +1 -0
- package/lib/cjs/components/inheritedClassMapper.js +22 -0
- package/lib/cjs/components/inheritedClassMapper.js.map +1 -0
- package/lib/cjs/components/itemMapper.js +10 -0
- package/lib/cjs/components/itemMapper.js.map +1 -0
- package/lib/cjs/components/lazyRefMapper.js +19 -0
- package/lib/cjs/components/lazyRefMapper.js.map +1 -0
- package/lib/cjs/components/mapMapper.js +25 -0
- package/lib/cjs/components/mapMapper.js.map +1 -0
- package/lib/cjs/components/objectMapper.js +31 -0
- package/lib/cjs/components/objectMapper.js.map +1 -0
- package/lib/cjs/components/ofMapper.js +17 -0
- package/lib/cjs/components/ofMapper.js.map +1 -0
- package/lib/cjs/components/propertiesMapper.js +25 -0
- package/lib/cjs/components/propertiesMapper.js.map +1 -0
- package/lib/cjs/components/schemaMapper.js +95 -0
- package/lib/cjs/components/schemaMapper.js.map +1 -0
- package/lib/cjs/constants/httpMethods.js +46 -0
- package/lib/cjs/constants/httpMethods.js.map +1 -0
- package/lib/cjs/constants/httpStatusMessages.js +26 -0
- package/lib/cjs/constants/httpStatusMessages.js.map +1 -0
- package/lib/cjs/decorators/class/children.js +24 -0
- package/lib/cjs/decorators/class/children.js.map +1 -0
- package/lib/cjs/decorators/collections/collectionContains.js +29 -0
- package/lib/cjs/decorators/collections/collectionContains.js.map +1 -0
- package/lib/cjs/decorators/collections/collectionOf.js +103 -0
- package/lib/cjs/decorators/collections/collectionOf.js.map +1 -0
- package/lib/cjs/decorators/collections/maxItems.js +60 -0
- package/lib/cjs/decorators/collections/maxItems.js.map +1 -0
- package/lib/cjs/decorators/collections/maxProperties.js +83 -0
- package/lib/cjs/decorators/collections/maxProperties.js.map +1 -0
- package/lib/cjs/decorators/collections/minItems.js +64 -0
- package/lib/cjs/decorators/collections/minItems.js.map +1 -0
- package/lib/cjs/decorators/collections/minProperties.js +82 -0
- package/lib/cjs/decorators/collections/minProperties.js.map +1 -0
- package/lib/cjs/decorators/collections/uniqueItems.js +60 -0
- package/lib/cjs/decorators/collections/uniqueItems.js.map +1 -0
- package/lib/cjs/decorators/common/additionalProperties.js +20 -0
- package/lib/cjs/decorators/common/additionalProperties.js.map +1 -0
- package/lib/cjs/decorators/common/allOf.js +22 -0
- package/lib/cjs/decorators/common/allOf.js.map +1 -0
- package/lib/cjs/decorators/common/allow.js +47 -0
- package/lib/cjs/decorators/common/allow.js.map +1 -0
- package/lib/cjs/decorators/common/any.js +46 -0
- package/lib/cjs/decorators/common/any.js.map +1 -0
- package/lib/cjs/decorators/common/anyOf.js +26 -0
- package/lib/cjs/decorators/common/anyOf.js.map +1 -0
- package/lib/cjs/decorators/common/const.js +70 -0
- package/lib/cjs/decorators/common/const.js.map +1 -0
- package/lib/cjs/decorators/common/customKey.js +43 -0
- package/lib/cjs/decorators/common/customKey.js.map +1 -0
- package/lib/cjs/decorators/common/default.js +51 -0
- package/lib/cjs/decorators/common/default.js.map +1 -0
- package/lib/cjs/decorators/common/description.js +76 -0
- package/lib/cjs/decorators/common/description.js.map +1 -0
- package/lib/cjs/decorators/common/enum.js +11 -0
- package/lib/cjs/decorators/common/enum.js.map +1 -0
- package/lib/cjs/decorators/common/example.js +21 -0
- package/lib/cjs/decorators/common/example.js.map +1 -0
- package/lib/cjs/decorators/common/examples.js +21 -0
- package/lib/cjs/decorators/common/examples.js.map +1 -0
- package/lib/cjs/decorators/common/exclusiveMaximum.js +77 -0
- package/lib/cjs/decorators/common/exclusiveMaximum.js.map +1 -0
- package/lib/cjs/decorators/common/exclusiveMinimum.js +77 -0
- package/lib/cjs/decorators/common/exclusiveMinimum.js.map +1 -0
- package/lib/cjs/decorators/common/format.js +486 -0
- package/lib/cjs/decorators/common/format.js.map +1 -0
- package/lib/cjs/decorators/common/forwardGroups.js +20 -0
- package/lib/cjs/decorators/common/forwardGroups.js.map +1 -0
- package/lib/cjs/decorators/common/groups.js +41 -0
- package/lib/cjs/decorators/common/groups.js.map +1 -0
- package/lib/cjs/decorators/common/hidden.js +40 -0
- package/lib/cjs/decorators/common/hidden.js.map +1 -0
- package/lib/cjs/decorators/common/ignore.js +71 -0
- package/lib/cjs/decorators/common/ignore.js.map +1 -0
- package/lib/cjs/decorators/common/integer.js +71 -0
- package/lib/cjs/decorators/common/integer.js.map +1 -0
- package/lib/cjs/decorators/common/jsonEntityFn.js +32 -0
- package/lib/cjs/decorators/common/jsonEntityFn.js.map +1 -0
- package/lib/cjs/decorators/common/maxLength.js +89 -0
- package/lib/cjs/decorators/common/maxLength.js.map +1 -0
- package/lib/cjs/decorators/common/maximum.js +151 -0
- package/lib/cjs/decorators/common/maximum.js.map +1 -0
- package/lib/cjs/decorators/common/minLength.js +90 -0
- package/lib/cjs/decorators/common/minLength.js.map +1 -0
- package/lib/cjs/decorators/common/minimum.js +149 -0
- package/lib/cjs/decorators/common/minimum.js.map +1 -0
- package/lib/cjs/decorators/common/multipleOf.js +81 -0
- package/lib/cjs/decorators/common/multipleOf.js.map +1 -0
- package/lib/cjs/decorators/common/name.js +52 -0
- package/lib/cjs/decorators/common/name.js.map +1 -0
- package/lib/cjs/decorators/common/nullable.js +34 -0
- package/lib/cjs/decorators/common/nullable.js.map +1 -0
- package/lib/cjs/decorators/common/oneOf.js +27 -0
- package/lib/cjs/decorators/common/oneOf.js.map +1 -0
- package/lib/cjs/decorators/common/optional.js +28 -0
- package/lib/cjs/decorators/common/optional.js.map +1 -0
- package/lib/cjs/decorators/common/pattern.js +103 -0
- package/lib/cjs/decorators/common/pattern.js.map +1 -0
- package/lib/cjs/decorators/common/property.js +27 -0
- package/lib/cjs/decorators/common/property.js.map +1 -0
- package/lib/cjs/decorators/common/readOnly.js +21 -0
- package/lib/cjs/decorators/common/readOnly.js.map +1 -0
- package/lib/cjs/decorators/common/recordOf.js +63 -0
- package/lib/cjs/decorators/common/recordOf.js.map +1 -0
- package/lib/cjs/decorators/common/required.js +53 -0
- package/lib/cjs/decorators/common/required.js.map +1 -0
- package/lib/cjs/decorators/common/requiredGroups.js +26 -0
- package/lib/cjs/decorators/common/requiredGroups.js.map +1 -0
- package/lib/cjs/decorators/common/schema.js +68 -0
- package/lib/cjs/decorators/common/schema.js.map +1 -0
- package/lib/cjs/decorators/common/title.js +49 -0
- package/lib/cjs/decorators/common/title.js.map +1 -0
- package/lib/cjs/decorators/common/writeOnly.js +21 -0
- package/lib/cjs/decorators/common/writeOnly.js.map +1 -0
- package/lib/cjs/decorators/config/jsonEntityComponent.js +18 -0
- package/lib/cjs/decorators/config/jsonEntityComponent.js.map +1 -0
- package/lib/cjs/decorators/generics/genericOf.js +99 -0
- package/lib/cjs/decorators/generics/genericOf.js.map +1 -0
- package/lib/cjs/decorators/generics/generics.js +25 -0
- package/lib/cjs/decorators/generics/generics.js.map +1 -0
- package/lib/cjs/decorators/operations/acceptMime.js +28 -0
- package/lib/cjs/decorators/operations/acceptMime.js.map +1 -0
- package/lib/cjs/decorators/operations/consumes.js +39 -0
- package/lib/cjs/decorators/operations/consumes.js.map +1 -0
- package/lib/cjs/decorators/operations/contentType.js +28 -0
- package/lib/cjs/decorators/operations/contentType.js.map +1 -0
- package/lib/cjs/decorators/operations/deprecated.js +43 -0
- package/lib/cjs/decorators/operations/deprecated.js.map +1 -0
- package/lib/cjs/decorators/operations/header.js +59 -0
- package/lib/cjs/decorators/operations/header.js.map +1 -0
- package/lib/cjs/decorators/operations/in.js +80 -0
- package/lib/cjs/decorators/operations/in.js.map +1 -0
- package/lib/cjs/decorators/operations/inFile.js +45 -0
- package/lib/cjs/decorators/operations/inFile.js.map +1 -0
- package/lib/cjs/decorators/operations/location.js +29 -0
- package/lib/cjs/decorators/operations/location.js.map +1 -0
- package/lib/cjs/decorators/operations/operationId.js +24 -0
- package/lib/cjs/decorators/operations/operationId.js.map +1 -0
- package/lib/cjs/decorators/operations/operationPath.js +34 -0
- package/lib/cjs/decorators/operations/operationPath.js.map +1 -0
- package/lib/cjs/decorators/operations/partial.js +18 -0
- package/lib/cjs/decorators/operations/partial.js.map +1 -0
- package/lib/cjs/decorators/operations/path.js +29 -0
- package/lib/cjs/decorators/operations/path.js.map +1 -0
- package/lib/cjs/decorators/operations/produces.js +46 -0
- package/lib/cjs/decorators/operations/produces.js.map +1 -0
- package/lib/cjs/decorators/operations/redirect.js +26 -0
- package/lib/cjs/decorators/operations/redirect.js.map +1 -0
- package/lib/cjs/decorators/operations/returns.js +252 -0
- package/lib/cjs/decorators/operations/returns.js.map +1 -0
- package/lib/cjs/decorators/operations/route.js +200 -0
- package/lib/cjs/decorators/operations/route.js.map +1 -0
- package/lib/cjs/decorators/operations/security.js +43 -0
- package/lib/cjs/decorators/operations/security.js.map +1 -0
- package/lib/cjs/decorators/operations/status.js +133 -0
- package/lib/cjs/decorators/operations/status.js.map +1 -0
- package/lib/cjs/decorators/operations/summary.js +34 -0
- package/lib/cjs/decorators/operations/summary.js.map +1 -0
- package/lib/cjs/decorators/operations/tags.js +52 -0
- package/lib/cjs/decorators/operations/tags.js.map +1 -0
- package/lib/cjs/decorators/operations/view.js +31 -0
- package/lib/cjs/decorators/operations/view.js.map +1 -0
- package/lib/cjs/domain/DecoratorContext.js +88 -0
- package/lib/cjs/domain/DecoratorContext.js.map +1 -0
- package/lib/cjs/domain/JsonAliasMap.js +15 -0
- package/lib/cjs/domain/JsonAliasMap.js.map +1 -0
- package/lib/cjs/domain/JsonClassStore.js +37 -0
- package/lib/cjs/domain/JsonClassStore.js.map +1 -0
- package/lib/cjs/domain/JsonEntityStore.js +166 -0
- package/lib/cjs/domain/JsonEntityStore.js.map +1 -0
- package/lib/cjs/domain/JsonFormatTypes.js +22 -0
- package/lib/cjs/domain/JsonFormatTypes.js.map +1 -0
- package/lib/cjs/domain/JsonLazyRef.js +26 -0
- package/lib/cjs/domain/JsonLazyRef.js.map +1 -0
- package/lib/cjs/domain/JsonMap.js +27 -0
- package/lib/cjs/domain/JsonMap.js.map +1 -0
- package/lib/cjs/domain/JsonMethodStore.js +143 -0
- package/lib/cjs/domain/JsonMethodStore.js.map +1 -0
- package/lib/cjs/domain/JsonOperation.js +235 -0
- package/lib/cjs/domain/JsonOperation.js.map +1 -0
- package/lib/cjs/domain/JsonOperationPathsMap.js +29 -0
- package/lib/cjs/domain/JsonOperationPathsMap.js.map +1 -0
- package/lib/cjs/domain/JsonOperationRoute.js +60 -0
- package/lib/cjs/domain/JsonOperationRoute.js.map +1 -0
- package/lib/cjs/domain/JsonParameter.js +119 -0
- package/lib/cjs/domain/JsonParameter.js.map +1 -0
- package/lib/cjs/domain/JsonParameterStore.js +99 -0
- package/lib/cjs/domain/JsonParameterStore.js.map +1 -0
- package/lib/cjs/domain/JsonParameterTypes.js +27 -0
- package/lib/cjs/domain/JsonParameterTypes.js.map +1 -0
- package/lib/cjs/domain/JsonPropertyStore.js +72 -0
- package/lib/cjs/domain/JsonPropertyStore.js.map +1 -0
- package/lib/cjs/domain/JsonRequestBody.js +32 -0
- package/lib/cjs/domain/JsonRequestBody.js.map +1 -0
- package/lib/cjs/domain/JsonResponse.js +76 -0
- package/lib/cjs/domain/JsonResponse.js.map +1 -0
- package/lib/cjs/domain/JsonSchema.js +716 -0
- package/lib/cjs/domain/JsonSchema.js.map +1 -0
- package/lib/cjs/domain/SpecTypes.js +10 -0
- package/lib/cjs/domain/SpecTypes.js.map +1 -0
- package/lib/cjs/hooks/alterIgnore.js +21 -0
- package/lib/cjs/hooks/alterIgnore.js.map +1 -0
- package/lib/cjs/hooks/alterOneOf.js +14 -0
- package/lib/cjs/hooks/alterOneOf.js.map +1 -0
- package/lib/cjs/hooks/alterRequiredGroups.js +15 -0
- package/lib/cjs/hooks/alterRequiredGroups.js.map +1 -0
- package/lib/cjs/index.js +154 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/interfaces/IgnoreCallback.js +3 -0
- package/lib/cjs/interfaces/IgnoreCallback.js.map +1 -0
- package/lib/cjs/interfaces/JsonHookContext.js +3 -0
- package/lib/cjs/interfaces/JsonHookContext.js.map +1 -0
- package/lib/cjs/interfaces/JsonOpenSpec.js +3 -0
- package/lib/cjs/interfaces/JsonOpenSpec.js.map +1 -0
- package/lib/cjs/interfaces/JsonSchemaOptions.js +3 -0
- package/lib/cjs/interfaces/JsonSchemaOptions.js.map +1 -0
- package/lib/cjs/package.json +3 -0
- package/lib/cjs/registries/JsonSchemaMapperContainer.js +37 -0
- package/lib/cjs/registries/JsonSchemaMapperContainer.js.map +1 -0
- package/lib/cjs/utils/buildPath.js +13 -0
- package/lib/cjs/utils/buildPath.js.map +1 -0
- package/lib/cjs/utils/concatParameters.js +16 -0
- package/lib/cjs/utils/concatParameters.js.map +1 -0
- package/lib/cjs/utils/concatPath.js +8 -0
- package/lib/cjs/utils/concatPath.js.map +1 -0
- package/lib/cjs/utils/defineStatusModel.js +13 -0
- package/lib/cjs/utils/defineStatusModel.js.map +1 -0
- package/lib/cjs/utils/from.js +273 -0
- package/lib/cjs/utils/from.js.map +1 -0
- package/lib/cjs/utils/generateSpec.js +46 -0
- package/lib/cjs/utils/generateSpec.js.map +1 -0
- package/lib/cjs/utils/generics.js +40 -0
- package/lib/cjs/utils/generics.js.map +1 -0
- package/lib/cjs/utils/getComputedType.js +26 -0
- package/lib/cjs/utils/getComputedType.js.map +1 -0
- package/lib/cjs/utils/getInheritedStores.js +23 -0
- package/lib/cjs/utils/getInheritedStores.js.map +1 -0
- package/lib/cjs/utils/getJsonEntityStore.js +18 -0
- package/lib/cjs/utils/getJsonEntityStore.js.map +1 -0
- package/lib/cjs/utils/getJsonPathParameters.js +73 -0
- package/lib/cjs/utils/getJsonPathParameters.js.map +1 -0
- package/lib/cjs/utils/getJsonSchema.js +65 -0
- package/lib/cjs/utils/getJsonSchema.js.map +1 -0
- package/lib/cjs/utils/getJsonType.js +40 -0
- package/lib/cjs/utils/getJsonType.js.map +1 -0
- package/lib/cjs/utils/getOperationsRoutes.js +37 -0
- package/lib/cjs/utils/getOperationsRoutes.js.map +1 -0
- package/lib/cjs/utils/getOperationsStores.js +33 -0
- package/lib/cjs/utils/getOperationsStores.js.map +1 -0
- package/lib/cjs/utils/getPropertiesStores.js +45 -0
- package/lib/cjs/utils/getPropertiesStores.js.map +1 -0
- package/lib/cjs/utils/getRequiredProperties.js +66 -0
- package/lib/cjs/utils/getRequiredProperties.js.map +1 -0
- package/lib/cjs/utils/getSpec.js +102 -0
- package/lib/cjs/utils/getSpec.js.map +1 -0
- package/lib/cjs/utils/getSpecType.js +21 -0
- package/lib/cjs/utils/getSpecType.js.map +1 -0
- package/lib/cjs/utils/isSuccessStatus.js +8 -0
- package/lib/cjs/utils/isSuccessStatus.js.map +1 -0
- package/lib/cjs/utils/mapHeaders.js +29 -0
- package/lib/cjs/utils/mapHeaders.js.map +1 -0
- package/lib/cjs/utils/mapNullableType.js +44 -0
- package/lib/cjs/utils/mapNullableType.js.map +1 -0
- package/lib/cjs/utils/mapOpenSpec.js +41 -0
- package/lib/cjs/utils/mapOpenSpec.js.map +1 -0
- package/lib/cjs/utils/mapOpenSpec2.js +34 -0
- package/lib/cjs/utils/mapOpenSpec2.js.map +1 -0
- package/lib/cjs/utils/mapOpenSpec3.js +26 -0
- package/lib/cjs/utils/mapOpenSpec3.js.map +1 -0
- package/lib/cjs/utils/mapOpenSpecInfo.js +21 -0
- package/lib/cjs/utils/mapOpenSpecInfo.js.map +1 -0
- package/lib/cjs/utils/mapRouteOptions.js +26 -0
- package/lib/cjs/utils/mapRouteOptions.js.map +1 -0
- package/lib/cjs/utils/matchGroups.js +23 -0
- package/lib/cjs/utils/matchGroups.js.map +1 -0
- package/lib/cjs/utils/mergeOperation.js +45 -0
- package/lib/cjs/utils/mergeOperation.js.map +1 -0
- package/lib/cjs/utils/mergeSpec.js +46 -0
- package/lib/cjs/utils/mergeSpec.js.map +1 -0
- package/lib/cjs/utils/operationIdFormatter.js +37 -0
- package/lib/cjs/utils/operationIdFormatter.js.map +1 -0
- package/lib/cjs/utils/ref.js +65 -0
- package/lib/cjs/utils/ref.js.map +1 -0
- package/lib/cjs/utils/serializeEnumValues.js +26 -0
- package/lib/cjs/utils/serializeEnumValues.js.map +1 -0
- package/lib/cjs/utils/toJsonMapCollection.js +15 -0
- package/lib/cjs/utils/toJsonMapCollection.js.map +1 -0
- package/lib/cjs/utils/toJsonRegex.js +12 -0
- package/lib/cjs/utils/toJsonRegex.js.map +1 -0
- package/lib/cjs/utils/transformToOS2.js +510 -0
- package/lib/cjs/utils/transformToOS2.js.map +1 -0
- package/lib/esm/components/anyMapper.js +19 -0
- package/lib/esm/components/anyMapper.js.map +1 -0
- package/lib/esm/components/classMapper.js +37 -0
- package/lib/esm/components/classMapper.js.map +1 -0
- package/lib/esm/components/genericsMapper.js +58 -0
- package/lib/esm/components/genericsMapper.js.map +1 -0
- package/lib/esm/components/inheritedClassMapper.js +18 -0
- package/lib/esm/components/inheritedClassMapper.js.map +1 -0
- package/lib/esm/components/itemMapper.js +6 -0
- package/lib/esm/components/itemMapper.js.map +1 -0
- package/lib/esm/components/lazyRefMapper.js +15 -0
- package/lib/esm/components/lazyRefMapper.js.map +1 -0
- package/lib/esm/components/mapMapper.js +21 -0
- package/lib/esm/components/mapMapper.js.map +1 -0
- package/lib/esm/components/objectMapper.js +27 -0
- package/lib/esm/components/objectMapper.js.map +1 -0
- package/lib/esm/components/ofMapper.js +13 -0
- package/lib/esm/components/ofMapper.js.map +1 -0
- package/lib/esm/components/propertiesMapper.js +21 -0
- package/lib/esm/components/propertiesMapper.js.map +1 -0
- package/lib/esm/components/schemaMapper.js +91 -0
- package/lib/esm/components/schemaMapper.js.map +1 -0
- package/lib/esm/constants/httpMethods.js +43 -0
- package/lib/esm/constants/httpMethods.js.map +1 -0
- package/lib/esm/constants/httpStatusMessages.js +20 -0
- package/lib/esm/constants/httpStatusMessages.js.map +1 -0
- package/lib/esm/decorators/class/children.js +20 -0
- package/lib/esm/decorators/class/children.js.map +1 -0
- package/lib/esm/decorators/collections/collectionContains.js +25 -0
- package/lib/esm/decorators/collections/collectionContains.js.map +1 -0
- package/lib/esm/decorators/collections/collectionOf.js +97 -0
- package/lib/esm/decorators/collections/collectionOf.js.map +1 -0
- package/lib/esm/decorators/collections/maxItems.js +56 -0
- package/lib/esm/decorators/collections/maxItems.js.map +1 -0
- package/lib/esm/decorators/collections/maxProperties.js +79 -0
- package/lib/esm/decorators/collections/maxProperties.js.map +1 -0
- package/lib/esm/decorators/collections/minItems.js +60 -0
- package/lib/esm/decorators/collections/minItems.js.map +1 -0
- package/lib/esm/decorators/collections/minProperties.js +78 -0
- package/lib/esm/decorators/collections/minProperties.js.map +1 -0
- package/lib/esm/decorators/collections/uniqueItems.js +56 -0
- package/lib/esm/decorators/collections/uniqueItems.js.map +1 -0
- package/lib/esm/decorators/common/additionalProperties.js +16 -0
- package/lib/esm/decorators/common/additionalProperties.js.map +1 -0
- package/lib/esm/decorators/common/allOf.js +18 -0
- package/lib/esm/decorators/common/allOf.js.map +1 -0
- package/lib/esm/decorators/common/allow.js +43 -0
- package/lib/esm/decorators/common/allow.js.map +1 -0
- package/lib/esm/decorators/common/any.js +42 -0
- package/lib/esm/decorators/common/any.js.map +1 -0
- package/lib/esm/decorators/common/anyOf.js +22 -0
- package/lib/esm/decorators/common/anyOf.js.map +1 -0
- package/lib/esm/decorators/common/const.js +66 -0
- package/lib/esm/decorators/common/const.js.map +1 -0
- package/lib/esm/decorators/common/customKey.js +38 -0
- package/lib/esm/decorators/common/customKey.js.map +1 -0
- package/lib/esm/decorators/common/default.js +47 -0
- package/lib/esm/decorators/common/default.js.map +1 -0
- package/lib/esm/decorators/common/description.js +72 -0
- package/lib/esm/decorators/common/description.js.map +1 -0
- package/lib/esm/decorators/common/enum.js +7 -0
- package/lib/esm/decorators/common/enum.js.map +1 -0
- package/lib/esm/decorators/common/example.js +17 -0
- package/lib/esm/decorators/common/example.js.map +1 -0
- package/lib/esm/decorators/common/examples.js +17 -0
- package/lib/esm/decorators/common/examples.js.map +1 -0
- package/lib/esm/decorators/common/exclusiveMaximum.js +73 -0
- package/lib/esm/decorators/common/exclusiveMaximum.js.map +1 -0
- package/lib/esm/decorators/common/exclusiveMinimum.js +73 -0
- package/lib/esm/decorators/common/exclusiveMinimum.js.map +1 -0
- package/lib/esm/decorators/common/format.js +476 -0
- package/lib/esm/decorators/common/format.js.map +1 -0
- package/lib/esm/decorators/common/forwardGroups.js +16 -0
- package/lib/esm/decorators/common/forwardGroups.js.map +1 -0
- package/lib/esm/decorators/common/groups.js +37 -0
- package/lib/esm/decorators/common/groups.js.map +1 -0
- package/lib/esm/decorators/common/hidden.js +36 -0
- package/lib/esm/decorators/common/hidden.js.map +1 -0
- package/lib/esm/decorators/common/ignore.js +67 -0
- package/lib/esm/decorators/common/ignore.js.map +1 -0
- package/lib/esm/decorators/common/integer.js +67 -0
- package/lib/esm/decorators/common/integer.js.map +1 -0
- package/lib/esm/decorators/common/jsonEntityFn.js +28 -0
- package/lib/esm/decorators/common/jsonEntityFn.js.map +1 -0
- package/lib/esm/decorators/common/maxLength.js +85 -0
- package/lib/esm/decorators/common/maxLength.js.map +1 -0
- package/lib/esm/decorators/common/maximum.js +146 -0
- package/lib/esm/decorators/common/maximum.js.map +1 -0
- package/lib/esm/decorators/common/minLength.js +86 -0
- package/lib/esm/decorators/common/minLength.js.map +1 -0
- package/lib/esm/decorators/common/minimum.js +144 -0
- package/lib/esm/decorators/common/minimum.js.map +1 -0
- package/lib/esm/decorators/common/multipleOf.js +77 -0
- package/lib/esm/decorators/common/multipleOf.js.map +1 -0
- package/lib/esm/decorators/common/name.js +48 -0
- package/lib/esm/decorators/common/name.js.map +1 -0
- package/lib/esm/decorators/common/nullable.js +30 -0
- package/lib/esm/decorators/common/nullable.js.map +1 -0
- package/lib/esm/decorators/common/oneOf.js +23 -0
- package/lib/esm/decorators/common/oneOf.js.map +1 -0
- package/lib/esm/decorators/common/optional.js +24 -0
- package/lib/esm/decorators/common/optional.js.map +1 -0
- package/lib/esm/decorators/common/pattern.js +99 -0
- package/lib/esm/decorators/common/pattern.js.map +1 -0
- package/lib/esm/decorators/common/property.js +23 -0
- package/lib/esm/decorators/common/property.js.map +1 -0
- package/lib/esm/decorators/common/readOnly.js +17 -0
- package/lib/esm/decorators/common/readOnly.js.map +1 -0
- package/lib/esm/decorators/common/recordOf.js +59 -0
- package/lib/esm/decorators/common/recordOf.js.map +1 -0
- package/lib/esm/decorators/common/required.js +49 -0
- package/lib/esm/decorators/common/required.js.map +1 -0
- package/lib/esm/decorators/common/requiredGroups.js +22 -0
- package/lib/esm/decorators/common/requiredGroups.js.map +1 -0
- package/lib/esm/decorators/common/schema.js +63 -0
- package/lib/esm/decorators/common/schema.js.map +1 -0
- package/lib/esm/decorators/common/title.js +45 -0
- package/lib/esm/decorators/common/title.js.map +1 -0
- package/lib/esm/decorators/common/writeOnly.js +17 -0
- package/lib/esm/decorators/common/writeOnly.js.map +1 -0
- package/lib/esm/decorators/config/jsonEntityComponent.js +14 -0
- package/lib/esm/decorators/config/jsonEntityComponent.js.map +1 -0
- package/lib/esm/decorators/generics/genericOf.js +95 -0
- package/lib/esm/decorators/generics/genericOf.js.map +1 -0
- package/lib/esm/decorators/generics/generics.js +21 -0
- package/lib/esm/decorators/generics/generics.js.map +1 -0
- package/lib/esm/decorators/operations/acceptMime.js +24 -0
- package/lib/esm/decorators/operations/acceptMime.js.map +1 -0
- package/lib/esm/decorators/operations/consumes.js +35 -0
- package/lib/esm/decorators/operations/consumes.js.map +1 -0
- package/lib/esm/decorators/operations/contentType.js +24 -0
- package/lib/esm/decorators/operations/contentType.js.map +1 -0
- package/lib/esm/decorators/operations/deprecated.js +39 -0
- package/lib/esm/decorators/operations/deprecated.js.map +1 -0
- package/lib/esm/decorators/operations/header.js +55 -0
- package/lib/esm/decorators/operations/header.js.map +1 -0
- package/lib/esm/decorators/operations/in.js +76 -0
- package/lib/esm/decorators/operations/in.js.map +1 -0
- package/lib/esm/decorators/operations/inFile.js +41 -0
- package/lib/esm/decorators/operations/inFile.js.map +1 -0
- package/lib/esm/decorators/operations/location.js +25 -0
- package/lib/esm/decorators/operations/location.js.map +1 -0
- package/lib/esm/decorators/operations/operationId.js +20 -0
- package/lib/esm/decorators/operations/operationId.js.map +1 -0
- package/lib/esm/decorators/operations/operationPath.js +30 -0
- package/lib/esm/decorators/operations/operationPath.js.map +1 -0
- package/lib/esm/decorators/operations/partial.js +14 -0
- package/lib/esm/decorators/operations/partial.js.map +1 -0
- package/lib/esm/decorators/operations/path.js +25 -0
- package/lib/esm/decorators/operations/path.js.map +1 -0
- package/lib/esm/decorators/operations/produces.js +42 -0
- package/lib/esm/decorators/operations/produces.js.map +1 -0
- package/lib/esm/decorators/operations/redirect.js +22 -0
- package/lib/esm/decorators/operations/redirect.js.map +1 -0
- package/lib/esm/decorators/operations/returns.js +248 -0
- package/lib/esm/decorators/operations/returns.js.map +1 -0
- package/lib/esm/decorators/operations/route.js +188 -0
- package/lib/esm/decorators/operations/route.js.map +1 -0
- package/lib/esm/decorators/operations/security.js +39 -0
- package/lib/esm/decorators/operations/security.js.map +1 -0
- package/lib/esm/decorators/operations/status.js +129 -0
- package/lib/esm/decorators/operations/status.js.map +1 -0
- package/lib/esm/decorators/operations/summary.js +30 -0
- package/lib/esm/decorators/operations/summary.js.map +1 -0
- package/lib/esm/decorators/operations/tags.js +48 -0
- package/lib/esm/decorators/operations/tags.js.map +1 -0
- package/lib/esm/decorators/operations/view.js +27 -0
- package/lib/esm/decorators/operations/view.js.map +1 -0
- package/lib/esm/domain/DecoratorContext.js +84 -0
- package/lib/esm/domain/DecoratorContext.js.map +1 -0
- package/lib/esm/domain/JsonAliasMap.js +11 -0
- package/lib/esm/domain/JsonAliasMap.js.map +1 -0
- package/lib/esm/domain/JsonClassStore.js +34 -0
- package/lib/esm/domain/JsonClassStore.js.map +1 -0
- package/lib/esm/domain/JsonEntityStore.js +162 -0
- package/lib/esm/domain/JsonEntityStore.js.map +1 -0
- package/lib/esm/domain/JsonFormatTypes.js +19 -0
- package/lib/esm/domain/JsonFormatTypes.js.map +1 -0
- package/lib/esm/domain/JsonLazyRef.js +22 -0
- package/lib/esm/domain/JsonLazyRef.js.map +1 -0
- package/lib/esm/domain/JsonMap.js +23 -0
- package/lib/esm/domain/JsonMap.js.map +1 -0
- package/lib/esm/domain/JsonMethodStore.js +140 -0
- package/lib/esm/domain/JsonMethodStore.js.map +1 -0
- package/lib/esm/domain/JsonOperation.js +231 -0
- package/lib/esm/domain/JsonOperation.js.map +1 -0
- package/lib/esm/domain/JsonOperationPathsMap.js +25 -0
- package/lib/esm/domain/JsonOperationPathsMap.js.map +1 -0
- package/lib/esm/domain/JsonOperationRoute.js +56 -0
- package/lib/esm/domain/JsonOperationRoute.js.map +1 -0
- package/lib/esm/domain/JsonParameter.js +115 -0
- package/lib/esm/domain/JsonParameter.js.map +1 -0
- package/lib/esm/domain/JsonParameterStore.js +96 -0
- package/lib/esm/domain/JsonParameterStore.js.map +1 -0
- package/lib/esm/domain/JsonParameterTypes.js +22 -0
- package/lib/esm/domain/JsonParameterTypes.js.map +1 -0
- package/lib/esm/domain/JsonPropertyStore.js +69 -0
- package/lib/esm/domain/JsonPropertyStore.js.map +1 -0
- package/lib/esm/domain/JsonRequestBody.js +28 -0
- package/lib/esm/domain/JsonRequestBody.js.map +1 -0
- package/lib/esm/domain/JsonResponse.js +71 -0
- package/lib/esm/domain/JsonResponse.js.map +1 -0
- package/lib/esm/domain/JsonSchema.js +712 -0
- package/lib/esm/domain/JsonSchema.js.map +1 -0
- package/lib/esm/domain/SpecTypes.js +7 -0
- package/lib/esm/domain/SpecTypes.js.map +1 -0
- package/lib/esm/hooks/alterIgnore.js +17 -0
- package/lib/esm/hooks/alterIgnore.js.map +1 -0
- package/lib/esm/hooks/alterOneOf.js +10 -0
- package/lib/esm/hooks/alterOneOf.js.map +1 -0
- package/lib/esm/hooks/alterRequiredGroups.js +11 -0
- package/lib/esm/hooks/alterRequiredGroups.js.map +1 -0
- package/lib/esm/index.js +151 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/interfaces/IgnoreCallback.js +2 -0
- package/lib/esm/interfaces/IgnoreCallback.js.map +1 -0
- package/lib/esm/interfaces/JsonHookContext.js +2 -0
- package/lib/esm/interfaces/JsonHookContext.js.map +1 -0
- package/lib/esm/interfaces/JsonOpenSpec.js +2 -0
- package/lib/esm/interfaces/JsonOpenSpec.js.map +1 -0
- package/lib/esm/interfaces/JsonSchemaOptions.js +2 -0
- package/lib/esm/interfaces/JsonSchemaOptions.js.map +1 -0
- package/lib/esm/package.json +3 -0
- package/lib/esm/registries/JsonSchemaMapperContainer.js +30 -0
- package/lib/esm/registries/JsonSchemaMapperContainer.js.map +1 -0
- package/lib/esm/utils/buildPath.js +9 -0
- package/lib/esm/utils/buildPath.js.map +1 -0
- package/lib/esm/utils/concatParameters.js +12 -0
- package/lib/esm/utils/concatParameters.js.map +1 -0
- package/lib/esm/utils/concatPath.js +4 -0
- package/lib/esm/utils/concatPath.js.map +1 -0
- package/lib/esm/utils/defineStatusModel.js +8 -0
- package/lib/esm/utils/defineStatusModel.js.map +1 -0
- package/lib/esm/utils/from.js +250 -0
- package/lib/esm/utils/from.js.map +1 -0
- package/lib/esm/utils/generateSpec.js +41 -0
- package/lib/esm/utils/generateSpec.js.map +1 -0
- package/lib/esm/utils/generics.js +34 -0
- package/lib/esm/utils/generics.js.map +1 -0
- package/lib/esm/utils/getComputedType.js +22 -0
- package/lib/esm/utils/getComputedType.js.map +1 -0
- package/lib/esm/utils/getInheritedStores.js +19 -0
- package/lib/esm/utils/getInheritedStores.js.map +1 -0
- package/lib/esm/utils/getJsonEntityStore.js +14 -0
- package/lib/esm/utils/getJsonEntityStore.js.map +1 -0
- package/lib/esm/utils/getJsonPathParameters.js +69 -0
- package/lib/esm/utils/getJsonPathParameters.js.map +1 -0
- package/lib/esm/utils/getJsonSchema.js +61 -0
- package/lib/esm/utils/getJsonSchema.js.map +1 -0
- package/lib/esm/utils/getJsonType.js +36 -0
- package/lib/esm/utils/getJsonType.js.map +1 -0
- package/lib/esm/utils/getOperationsRoutes.js +33 -0
- package/lib/esm/utils/getOperationsRoutes.js.map +1 -0
- package/lib/esm/utils/getOperationsStores.js +29 -0
- package/lib/esm/utils/getOperationsStores.js.map +1 -0
- package/lib/esm/utils/getPropertiesStores.js +40 -0
- package/lib/esm/utils/getPropertiesStores.js.map +1 -0
- package/lib/esm/utils/getRequiredProperties.js +62 -0
- package/lib/esm/utils/getRequiredProperties.js.map +1 -0
- package/lib/esm/utils/getSpec.js +98 -0
- package/lib/esm/utils/getSpec.js.map +1 -0
- package/lib/esm/utils/getSpecType.js +16 -0
- package/lib/esm/utils/getSpecType.js.map +1 -0
- package/lib/esm/utils/isSuccessStatus.js +3 -0
- package/lib/esm/utils/isSuccessStatus.js.map +1 -0
- package/lib/esm/utils/mapHeaders.js +25 -0
- package/lib/esm/utils/mapHeaders.js.map +1 -0
- package/lib/esm/utils/mapNullableType.js +40 -0
- package/lib/esm/utils/mapNullableType.js.map +1 -0
- package/lib/esm/utils/mapOpenSpec.js +37 -0
- package/lib/esm/utils/mapOpenSpec.js.map +1 -0
- package/lib/esm/utils/mapOpenSpec2.js +30 -0
- package/lib/esm/utils/mapOpenSpec2.js.map +1 -0
- package/lib/esm/utils/mapOpenSpec3.js +22 -0
- package/lib/esm/utils/mapOpenSpec3.js.map +1 -0
- package/lib/esm/utils/mapOpenSpecInfo.js +17 -0
- package/lib/esm/utils/mapOpenSpecInfo.js.map +1 -0
- package/lib/esm/utils/mapRouteOptions.js +22 -0
- package/lib/esm/utils/mapRouteOptions.js.map +1 -0
- package/lib/esm/utils/matchGroups.js +18 -0
- package/lib/esm/utils/matchGroups.js.map +1 -0
- package/lib/esm/utils/mergeOperation.js +41 -0
- package/lib/esm/utils/mergeOperation.js.map +1 -0
- package/lib/esm/utils/mergeSpec.js +42 -0
- package/lib/esm/utils/mergeSpec.js.map +1 -0
- package/lib/esm/utils/operationIdFormatter.js +33 -0
- package/lib/esm/utils/operationIdFormatter.js.map +1 -0
- package/lib/esm/utils/ref.js +59 -0
- package/lib/esm/utils/ref.js.map +1 -0
- package/lib/esm/utils/serializeEnumValues.js +21 -0
- package/lib/esm/utils/serializeEnumValues.js.map +1 -0
- package/lib/esm/utils/toJsonMapCollection.js +11 -0
- package/lib/esm/utils/toJsonMapCollection.js.map +1 -0
- package/lib/esm/utils/toJsonRegex.js +8 -0
- package/lib/esm/utils/toJsonRegex.js.map +1 -0
- package/lib/esm/utils/transformToOS2.js +504 -0
- package/lib/esm/utils/transformToOS2.js.map +1 -0
- package/lib/{components → types/components}/anyMapper.d.ts +0 -0
- package/lib/{components → types/components}/classMapper.d.ts +1 -1
- package/lib/{components → types/components}/genericsMapper.d.ts +0 -0
- package/lib/{components → types/components}/inheritedClassMapper.d.ts +1 -1
- package/lib/{components → types/components}/itemMapper.d.ts +0 -0
- package/lib/types/components/lazyRefMapper.d.ts +3 -0
- package/lib/{components → types/components}/mapMapper.d.ts +1 -1
- package/lib/{components → types/components}/objectMapper.d.ts +0 -0
- package/lib/types/components/ofMapper.d.ts +3 -0
- package/lib/types/components/propertiesMapper.d.ts +3 -0
- package/lib/{components → types/components}/schemaMapper.d.ts +1 -1
- package/lib/types/constants/httpMethods.d.ts +12 -0
- package/lib/types/constants/httpStatusMessages.d.ts +11 -0
- package/lib/types/decorators/class/children.d.ts +11 -0
- package/lib/{decorators → types/decorators}/collections/collectionContains.d.ts +0 -0
- package/lib/{decorators → types/decorators}/collections/collectionOf.d.ts +1 -1
- package/lib/{decorators → types/decorators}/collections/maxItems.d.ts +0 -0
- package/lib/{decorators → types/decorators}/collections/maxProperties.d.ts +0 -0
- package/lib/{decorators → types/decorators}/collections/minItems.d.ts +0 -0
- package/lib/{decorators → types/decorators}/collections/minProperties.d.ts +0 -0
- package/lib/{decorators → types/decorators}/collections/uniqueItems.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/additionalProperties.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/allOf.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/allow.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/any.d.ts +1 -1
- package/lib/{decorators → types/decorators}/common/anyOf.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/const.d.ts +1 -1
- package/lib/{decorators → types/decorators}/common/customKey.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/default.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/description.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/enum.d.ts +1 -1
- package/lib/{decorators → types/decorators}/common/example.d.ts +0 -0
- package/lib/types/decorators/common/examples.d.ts +12 -0
- package/lib/{decorators → types/decorators}/common/exclusiveMaximum.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/exclusiveMinimum.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/format.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/forwardGroups.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/groups.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/hidden.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/ignore.d.ts +1 -1
- package/lib/{decorators → types/decorators}/common/integer.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/jsonEntityFn.d.ts +2 -2
- package/lib/{decorators → types/decorators}/common/maxLength.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/maximum.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/minLength.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/minimum.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/multipleOf.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/name.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/nullable.d.ts +1 -1
- package/lib/{decorators → types/decorators}/common/oneOf.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/optional.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/pattern.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/property.d.ts +1 -0
- package/lib/{decorators → types/decorators}/common/readOnly.d.ts +0 -0
- package/lib/types/decorators/common/recordOf.d.ts +46 -0
- package/lib/{decorators → types/decorators}/common/required.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/requiredGroups.d.ts +1 -1
- package/lib/{decorators → types/decorators}/common/schema.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/title.d.ts +0 -0
- package/lib/{decorators → types/decorators}/common/writeOnly.d.ts +0 -0
- package/lib/{decorators → types/decorators}/config/jsonEntityComponent.d.ts +0 -0
- package/lib/{decorators → types/decorators}/generics/genericOf.d.ts +0 -0
- package/lib/{decorators → types/decorators}/generics/generics.d.ts +0 -0
- package/lib/types/decorators/operations/acceptMime.d.ts +19 -0
- package/lib/{decorators → types/decorators}/operations/consumes.d.ts +0 -0
- package/lib/{decorators → types/decorators}/operations/contentType.d.ts +0 -0
- package/lib/{decorators → types/decorators}/operations/deprecated.d.ts +0 -0
- package/lib/{decorators → types/decorators}/operations/header.d.ts +0 -0
- package/lib/{decorators → types/decorators}/operations/in.d.ts +1 -1
- package/lib/types/decorators/operations/inFile.d.ts +25 -0
- package/lib/{decorators → types/decorators}/operations/location.d.ts +0 -0
- package/lib/{decorators → types/decorators}/operations/operationId.d.ts +0 -0
- package/lib/{decorators → types/decorators}/operations/operationPath.d.ts +1 -11
- package/lib/{decorators → types/decorators}/operations/partial.d.ts +0 -0
- package/lib/{decorators → types/decorators}/operations/path.d.ts +0 -0
- package/lib/{decorators → types/decorators}/operations/produces.d.ts +0 -0
- package/lib/{decorators → types/decorators}/operations/redirect.d.ts +0 -0
- package/lib/{decorators → types/decorators}/operations/returns.d.ts +16 -1
- package/lib/types/decorators/operations/route.d.ts +188 -0
- package/lib/{decorators → types/decorators}/operations/security.d.ts +0 -0
- package/lib/{decorators → types/decorators}/operations/status.d.ts +0 -0
- package/lib/{decorators → types/decorators}/operations/summary.d.ts +0 -0
- package/lib/{decorators → types/decorators}/operations/tags.d.ts +0 -0
- package/lib/types/decorators/operations/view.d.ts +23 -0
- package/lib/{domain → types/domain}/DecoratorContext.d.ts +7 -2
- package/lib/{domain → types/domain}/JsonAliasMap.d.ts +0 -0
- package/lib/types/domain/JsonClassStore.d.ts +12 -0
- package/lib/types/domain/JsonEntityStore.d.ts +136 -0
- package/lib/{domain → types/domain}/JsonFormatTypes.d.ts +0 -0
- package/lib/{domain → types/domain}/JsonLazyRef.d.ts +0 -0
- package/lib/{domain → types/domain}/JsonMap.d.ts +1 -1
- package/lib/types/domain/JsonMethodStore.d.ts +89 -0
- package/lib/{domain → types/domain}/JsonOperation.d.ts +3 -1
- package/lib/types/domain/JsonOperationPathsMap.d.ts +7 -0
- package/lib/types/domain/JsonOperationRoute.d.ts +26 -0
- package/lib/{domain → types/domain}/JsonParameter.d.ts +5 -2
- package/lib/types/domain/JsonParameterStore.d.ts +52 -0
- package/lib/{domain → types/domain}/JsonParameterTypes.d.ts +0 -0
- package/lib/types/domain/JsonPropertyStore.d.ts +30 -0
- package/lib/{domain → types/domain}/JsonRequestBody.d.ts +0 -0
- package/lib/{domain → types/domain}/JsonResponse.d.ts +2 -1
- package/lib/{domain → types/domain}/JsonSchema.d.ts +8 -14
- package/lib/{domain → types/domain}/SpecTypes.d.ts +0 -0
- package/lib/{hooks → types/hooks}/alterIgnore.d.ts +0 -0
- package/lib/types/hooks/alterOneOf.d.ts +3 -0
- package/lib/{hooks → types/hooks}/alterRequiredGroups.d.ts +0 -0
- package/lib/types/index.d.ts +150 -0
- package/lib/{interfaces → types/interfaces}/IgnoreCallback.d.ts +0 -0
- package/lib/{interfaces → types/interfaces}/JsonHookContext.d.ts +0 -0
- package/lib/{interfaces → types/interfaces}/JsonOpenSpec.d.ts +0 -0
- package/lib/{interfaces → types/interfaces}/JsonSchemaOptions.d.ts +0 -0
- package/lib/{registries → types/registries}/JsonSchemaMapperContainer.d.ts +3 -2
- package/lib/{utils → types/utils}/buildPath.d.ts +0 -0
- package/lib/{utils → types/utils}/concatParameters.d.ts +0 -0
- package/lib/types/utils/concatPath.d.ts +1 -0
- package/lib/{utils → types/utils}/defineStatusModel.d.ts +0 -0
- package/lib/{utils → types/utils}/from.d.ts +0 -0
- package/lib/types/utils/generateSpec.d.ts +16 -0
- package/lib/{utils → types/utils}/generics.d.ts +1 -1
- package/lib/{utils → types/utils}/getComputedType.d.ts +0 -0
- package/lib/{utils → types/utils}/getInheritedStores.d.ts +2 -2
- package/lib/types/utils/getJsonEntityStore.d.ts +15 -0
- package/lib/{utils → types/utils}/getJsonPathParameters.d.ts +0 -0
- package/lib/types/utils/getJsonSchema.d.ts +14 -0
- package/lib/{utils → types/utils}/getJsonType.d.ts +0 -0
- package/lib/types/utils/getOperationsRoutes.d.ts +8 -0
- package/lib/types/utils/getOperationsStores.d.ts +6 -0
- package/lib/types/utils/getPropertiesStores.d.ts +20 -0
- package/lib/{utils → types/utils}/getRequiredProperties.d.ts +0 -0
- package/lib/types/utils/getSpec.d.ts +30 -0
- package/lib/types/utils/getSpecType.d.ts +12 -0
- package/lib/{utils → types/utils}/isSuccessStatus.d.ts +0 -0
- package/lib/{utils → types/utils}/mapHeaders.d.ts +0 -0
- package/lib/{utils → types/utils}/mapNullableType.d.ts +1 -1
- package/lib/types/utils/mapOpenSpec.d.ts +10 -0
- package/lib/types/utils/mapOpenSpec2.d.ts +9 -0
- package/lib/types/utils/mapOpenSpec3.d.ts +8 -0
- package/lib/types/utils/mapOpenSpecInfo.d.ts +6 -0
- package/lib/types/utils/mapRouteOptions.d.ts +5 -0
- package/lib/{utils → types/utils}/matchGroups.d.ts +0 -0
- package/lib/{utils → types/utils}/mergeOperation.d.ts +0 -0
- package/lib/{utils → types/utils}/mergeSpec.d.ts +0 -0
- package/lib/{utils → types/utils}/operationIdFormatter.d.ts +0 -0
- package/lib/types/utils/ref.d.ts +14 -0
- package/lib/types/utils/serializeEnumValues.d.ts +5 -0
- package/lib/{utils → types/utils}/toJsonMapCollection.d.ts +0 -0
- package/lib/{utils → types/utils}/toJsonRegex.d.ts +0 -0
- package/lib/types/utils/transformToOS2.d.ts +25 -0
- package/package.json +43 -21
- package/readme.md +1 -0
- package/tsconfig.compile.esm.json +13 -0
- package/lib/components/index.d.ts +0 -9
- package/lib/components/lazyRefMapper.d.ts +0 -19
- package/lib/constants/httpStatusMessages.d.ts +0 -5
- package/lib/decorators/index.d.ts +0 -64
- package/lib/domain/JsonEntityStore.d.ts +0 -94
- package/lib/domain/index.d.ts +0 -11
- package/lib/index.d.ts +0 -16
- package/lib/index.js +0 -7632
- package/lib/index.js.map +0 -1
- package/lib/index.modern.js +0 -7499
- package/lib/index.modern.js.map +0 -1
- package/lib/interfaces/index.d.ts +0 -4
- package/lib/registries/JsonEntitiesContainer.d.ts +0 -6
- package/lib/utils/getJsonEntityStore.d.ts +0 -6
- package/lib/utils/getJsonSchema.d.ts +0 -5
- package/lib/utils/getOperationsStores.d.ts +0 -6
- package/lib/utils/getPropertiesStores.d.ts +0 -20
- package/lib/utils/getSpec.d.ts +0 -49
- package/lib/utils/isJsonClass.d.ts +0 -4
- package/lib/utils/mergeSpec.benchmark.d.ts +0 -1
- package/lib/utils/ref.d.ts +0 -46
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { DecoratorTypes, Store, Type } from "@tsed/core";
|
|
2
|
+
import type { JsonSchema } from "./JsonSchema";
|
|
3
|
+
import type { JsonMethodStore } from "./JsonMethodStore";
|
|
4
|
+
import type { JsonClassStore } from "./JsonClassStore";
|
|
5
|
+
import type { JsonPropertyStore } from "./JsonPropertyStore";
|
|
6
|
+
import type { JsonParameterStore } from "./JsonParameterStore";
|
|
7
|
+
/**
|
|
8
|
+
* @ignore
|
|
9
|
+
*/
|
|
10
|
+
export declare const JsonEntitiesContainer: Map<DecoratorTypes, Type<JsonEntityStore>>;
|
|
11
|
+
export interface JsonEntityStoreOptions {
|
|
12
|
+
decoratorType: DecoratorTypes;
|
|
13
|
+
target: Type<any>;
|
|
14
|
+
propertyKey?: string | symbol;
|
|
15
|
+
index?: number;
|
|
16
|
+
descriptor?: any;
|
|
17
|
+
type?: Type<any>;
|
|
18
|
+
collectionType?: Type<any>;
|
|
19
|
+
beforeMiddlewares?: Function[];
|
|
20
|
+
middlewares?: Function[];
|
|
21
|
+
afterMiddlewares?: Function[];
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}
|
|
24
|
+
export declare abstract class JsonEntityStore implements JsonEntityStoreOptions {
|
|
25
|
+
/**
|
|
26
|
+
* Original property key decorated by the decorator
|
|
27
|
+
*/
|
|
28
|
+
readonly propertyKey: string | symbol;
|
|
29
|
+
/**
|
|
30
|
+
* Alias of the property
|
|
31
|
+
*/
|
|
32
|
+
readonly propertyName: string;
|
|
33
|
+
/**
|
|
34
|
+
* Parameter index
|
|
35
|
+
*/
|
|
36
|
+
readonly index: number;
|
|
37
|
+
/**
|
|
38
|
+
* Method's descriptor
|
|
39
|
+
*/
|
|
40
|
+
readonly descriptor: number;
|
|
41
|
+
/**
|
|
42
|
+
* Decorator type used to declare the JsonSchemaStore.
|
|
43
|
+
*/
|
|
44
|
+
readonly decoratorType: DecoratorTypes;
|
|
45
|
+
/**
|
|
46
|
+
* Type of the collection (Array, Map, Set, etc...)
|
|
47
|
+
*/
|
|
48
|
+
collectionType: Type<any>;
|
|
49
|
+
token: Type<any>;
|
|
50
|
+
readonly store: Store;
|
|
51
|
+
readonly isStore = true;
|
|
52
|
+
readonly parent: JsonEntityStore;
|
|
53
|
+
readonly target: Type<any>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
protected _type: Type<any>;
|
|
58
|
+
/**
|
|
59
|
+
* Ref to JsonSchema
|
|
60
|
+
*/
|
|
61
|
+
protected _schema: JsonSchema;
|
|
62
|
+
[key: string]: any;
|
|
63
|
+
constructor(options: JsonEntityStoreOptions);
|
|
64
|
+
/**
|
|
65
|
+
* Return the class name of the entity.
|
|
66
|
+
* @returns {string}
|
|
67
|
+
*/
|
|
68
|
+
get targetName(): string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @returns {boolean}
|
|
72
|
+
*/
|
|
73
|
+
get isCollection(): boolean;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @returns {boolean}
|
|
77
|
+
*/
|
|
78
|
+
get isArray(): boolean;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @returns {boolean}
|
|
82
|
+
*/
|
|
83
|
+
get isPrimitive(): boolean;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @returns {boolean}
|
|
87
|
+
*/
|
|
88
|
+
get isDate(): boolean;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @returns {boolean}
|
|
92
|
+
*/
|
|
93
|
+
get isObject(): boolean;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
*/
|
|
97
|
+
get isClass(): boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Return the JsonSchema
|
|
100
|
+
*/
|
|
101
|
+
get schema(): JsonSchema;
|
|
102
|
+
get nestedGenerics(): Type<any>[][];
|
|
103
|
+
set nestedGenerics(nestedGenerics: Type<any>[][]);
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @returns {Type<any>}
|
|
107
|
+
*/
|
|
108
|
+
get type(): Type<any> | any;
|
|
109
|
+
/**
|
|
110
|
+
* Get original type without transformation
|
|
111
|
+
* @param value
|
|
112
|
+
*/
|
|
113
|
+
set type(value: Type<any> | any);
|
|
114
|
+
/**
|
|
115
|
+
* Return the itemSchema computed type. if the type is a function used for recursive model, the function will be called to
|
|
116
|
+
* get the right type.
|
|
117
|
+
*/
|
|
118
|
+
get computedType(): any;
|
|
119
|
+
get itemSchema(): JsonSchema;
|
|
120
|
+
get parentSchema(): JsonSchema;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @param target
|
|
124
|
+
*/
|
|
125
|
+
static from<T extends JsonClassStore = JsonClassStore>(target: Type<any>): T;
|
|
126
|
+
static from<T extends JsonPropertyStore = JsonPropertyStore>(target: Type<any> | any, propertyKey: string | symbol): T;
|
|
127
|
+
static from<T extends JsonParameterStore = JsonParameterStore>(target: Type<any> | any, propertyKey: string | symbol, index: number): T;
|
|
128
|
+
static from<T extends JsonMethodStore = JsonMethodStore>(target: Type<any> | any, propertyKey: string | symbol, descriptor: PropertyDescriptor): T;
|
|
129
|
+
static from<T extends JsonEntityStore = JsonEntityStore>(...args: any[]): T;
|
|
130
|
+
static fromMethod<T extends JsonMethodStore = JsonMethodStore>(target: any, propertyKey: string | symbol): T;
|
|
131
|
+
get<T = any>(key: string, defaultValue?: any): T;
|
|
132
|
+
set(key: string, value?: any): Store;
|
|
133
|
+
protected abstract build(): void;
|
|
134
|
+
protected buildType(type: any): void;
|
|
135
|
+
static get(target: Type<any>, propertyKey: string | symbol, descriptor?: any): JsonEntityStore;
|
|
136
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { Type } from "@tsed/core";
|
|
2
|
+
import { JsonEntityStore, JsonEntityStoreOptions } from "./JsonEntityStore";
|
|
3
|
+
import { JsonOperation } from "./JsonOperation";
|
|
4
|
+
import type { JsonParameterStore } from "./JsonParameterStore";
|
|
5
|
+
import type { JsonClassStore } from "./JsonClassStore";
|
|
6
|
+
export interface JsonViewOptions {
|
|
7
|
+
path: string;
|
|
8
|
+
options: any;
|
|
9
|
+
}
|
|
10
|
+
export interface JsonRedirectOptions {
|
|
11
|
+
status: number | undefined;
|
|
12
|
+
url: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class JsonMethodStore extends JsonEntityStore {
|
|
15
|
+
readonly parent: JsonClassStore;
|
|
16
|
+
middlewares: any[];
|
|
17
|
+
beforeMiddlewares: any[];
|
|
18
|
+
afterMiddlewares: any[];
|
|
19
|
+
/**
|
|
20
|
+
* Ref to JsonOperation when the decorated object is a method.
|
|
21
|
+
*/
|
|
22
|
+
readonly operation: JsonOperation;
|
|
23
|
+
/**
|
|
24
|
+
* List of children JsonEntityStore (properties or methods or params)
|
|
25
|
+
*/
|
|
26
|
+
readonly children: Map<string | number, JsonParameterStore>;
|
|
27
|
+
constructor(options: JsonEntityStoreOptions);
|
|
28
|
+
get params(): JsonParameterStore[];
|
|
29
|
+
get view(): JsonViewOptions;
|
|
30
|
+
set view(view: JsonViewOptions);
|
|
31
|
+
get acceptMimes(): string[];
|
|
32
|
+
set acceptMimes(mimes: string[]);
|
|
33
|
+
get parameters(): JsonParameterStore[];
|
|
34
|
+
get operationPaths(): Map<string, import("./JsonOperation").JsonMethodPath>;
|
|
35
|
+
/**
|
|
36
|
+
* Get an endpoint.
|
|
37
|
+
* @param target
|
|
38
|
+
* @param propertyKey
|
|
39
|
+
* @param descriptor
|
|
40
|
+
*/
|
|
41
|
+
static get(target: Type<any>, propertyKey: string | symbol, descriptor?: PropertyDescriptor): JsonMethodStore;
|
|
42
|
+
getResponseOptions(status: number, contentType?: string): undefined | any;
|
|
43
|
+
/**
|
|
44
|
+
* Append middlewares to the beforeMiddlewares list.
|
|
45
|
+
* @param args
|
|
46
|
+
* @returns {EndpointMetadata}
|
|
47
|
+
*/
|
|
48
|
+
before(args: Function[]): this;
|
|
49
|
+
/**
|
|
50
|
+
* Append middlewares to the afterMiddlewares list.
|
|
51
|
+
* @param args
|
|
52
|
+
* @returns {EndpointMetadata}
|
|
53
|
+
*/
|
|
54
|
+
after(args: Function[]): this;
|
|
55
|
+
/**
|
|
56
|
+
* Store all arguments collected via Annotation.
|
|
57
|
+
* @param args
|
|
58
|
+
*/
|
|
59
|
+
use(args: Function[]): this;
|
|
60
|
+
/**
|
|
61
|
+
* Find the value at the controller level. Let this value be extended or overridden by the endpoint itself.
|
|
62
|
+
*
|
|
63
|
+
* @param key
|
|
64
|
+
* @returns {any}
|
|
65
|
+
*/
|
|
66
|
+
get<T = any>(key: any): T;
|
|
67
|
+
getParamTypes(): Record<string, boolean>;
|
|
68
|
+
protected build(): void;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* EndpointMetadata contains metadata about a controller and his method.
|
|
72
|
+
* Each annotation (@Get, @Body...) attached to a method are stored into endpoint.
|
|
73
|
+
* EndpointMetadata convert this metadata to an array which contain arguments to call an Express method.
|
|
74
|
+
*
|
|
75
|
+
* Example :
|
|
76
|
+
*```typescript
|
|
77
|
+
* @Controller("/my-path")
|
|
78
|
+
* provide MyClass {
|
|
79
|
+
*
|
|
80
|
+
* @Get("/")
|
|
81
|
+
* @Authenticated()
|
|
82
|
+
* public myMethod(){}
|
|
83
|
+
* }
|
|
84
|
+
*```
|
|
85
|
+
*
|
|
86
|
+
* @alias JsonMethodStore
|
|
87
|
+
*/
|
|
88
|
+
export declare type EndpointMetadata = JsonMethodStore;
|
|
89
|
+
export declare const EndpointMetadata: typeof JsonMethodStore;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OpenSpecSecurity, OpenSpecTag, OS3Operation } from "@tsed/openspec";
|
|
2
|
-
import { JsonHeader
|
|
2
|
+
import { JsonHeader } from "../interfaces/JsonOpenSpec";
|
|
3
|
+
import { JsonSchemaOptions } from "../interfaces/JsonSchemaOptions";
|
|
3
4
|
import { JsonMap } from "./JsonMap";
|
|
4
5
|
import { JsonParameter } from "./JsonParameter";
|
|
5
6
|
import { JsonResponse } from "./JsonResponse";
|
|
@@ -7,6 +8,7 @@ import { JsonSchema } from "./JsonSchema";
|
|
|
7
8
|
export interface JsonMethodPath {
|
|
8
9
|
path: string | RegExp;
|
|
9
10
|
method: string;
|
|
11
|
+
isFinal?: boolean;
|
|
10
12
|
[key: string]: any;
|
|
11
13
|
}
|
|
12
14
|
export interface JsonOperationOptions extends OS3Operation<JsonSchema, JsonParameter, JsonMap<JsonResponse>> {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { JsonMethodPath } from "./JsonOperation";
|
|
2
|
+
export declare class JsonOperationPathsMap extends Map<string, JsonMethodPath> {
|
|
3
|
+
setOperationPath(operationPath: JsonMethodPath): void;
|
|
4
|
+
protected getKey: (method: string, path: any) => string;
|
|
5
|
+
protected updateFinalRouteState(key: string): void;
|
|
6
|
+
protected setFinalRoute(key: string, operationPath: JsonMethodPath): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Type } from "@tsed/core";
|
|
2
|
+
import { JsonMethodStore } from "./JsonMethodStore";
|
|
3
|
+
import { JsonMethodPath, JsonOperation } from "./JsonOperation";
|
|
4
|
+
export declare class JsonOperationRoute<Entity extends JsonMethodStore = JsonMethodStore> {
|
|
5
|
+
readonly token: Type<any>;
|
|
6
|
+
readonly endpoint: Entity;
|
|
7
|
+
readonly operationPath?: JsonMethodPath;
|
|
8
|
+
readonly basePath?: string;
|
|
9
|
+
readonly paramsTypes: Record<string, boolean>;
|
|
10
|
+
constructor(options: Partial<JsonOperationRoute>);
|
|
11
|
+
get url(): string;
|
|
12
|
+
get path(): string | RegExp | undefined;
|
|
13
|
+
get fullPath(): string;
|
|
14
|
+
get method(): string;
|
|
15
|
+
get isFinal(): boolean;
|
|
16
|
+
get name(): string;
|
|
17
|
+
get className(): string;
|
|
18
|
+
get methodClassName(): string;
|
|
19
|
+
get parameters(): import("./JsonParameterStore").JsonParameterStore[];
|
|
20
|
+
get propertyKey(): string;
|
|
21
|
+
get propertyName(): string;
|
|
22
|
+
get store(): import("@tsed/core").Store;
|
|
23
|
+
get operation(): JsonOperation;
|
|
24
|
+
get operationId(): any;
|
|
25
|
+
has(key: string): boolean;
|
|
26
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Type } from "@tsed/core";
|
|
2
|
-
import { OS3Parameter } from "@tsed/openspec";
|
|
3
|
-
import { JsonSchemaOptions } from "../interfaces";
|
|
2
|
+
import { OpenSpecHash, OpenSpecRef, OS3Example, OS3Parameter } from "@tsed/openspec";
|
|
3
|
+
import { JsonSchemaOptions } from "../interfaces/JsonSchemaOptions";
|
|
4
4
|
import { NestedGenerics } from "../utils/generics";
|
|
5
5
|
import { JsonMap } from "./JsonMap";
|
|
6
6
|
import { JsonSchema } from "./JsonSchema";
|
|
@@ -8,13 +8,16 @@ export declare class JsonParameter extends JsonMap<OS3Parameter<JsonSchema>> imp
|
|
|
8
8
|
nestedGenerics: Type<any>[][];
|
|
9
9
|
groups: string[];
|
|
10
10
|
$schema: JsonSchema;
|
|
11
|
+
expression: string;
|
|
11
12
|
getName(): any;
|
|
12
13
|
name(name: string): this;
|
|
14
|
+
examples(examples: OpenSpecHash<OS3Example | OpenSpecRef>): this;
|
|
13
15
|
description(description: string): this;
|
|
14
16
|
in(inType: string, expression?: string | any): this;
|
|
15
17
|
required(required: boolean): this;
|
|
16
18
|
schema(schema: JsonSchema): this;
|
|
17
19
|
toJSON(options?: JsonSchemaOptions): any;
|
|
18
20
|
private build;
|
|
21
|
+
private getFileSchema;
|
|
19
22
|
private refToParameters;
|
|
20
23
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Type } from "@tsed/core";
|
|
2
|
+
import { JsonEntityStore, JsonEntityStoreOptions } from "./JsonEntityStore";
|
|
3
|
+
import type { JsonMethodStore } from "./JsonMethodStore";
|
|
4
|
+
import { JsonParameter } from "./JsonParameter";
|
|
5
|
+
import { JsonSchema } from "./JsonSchema";
|
|
6
|
+
export interface JsonParameterStoreOptions extends JsonEntityStoreOptions {
|
|
7
|
+
dataPath?: string;
|
|
8
|
+
paramType?: string;
|
|
9
|
+
expression?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface PipeMethods<T = any, R = any> {
|
|
12
|
+
transform(value: T, metadata: JsonParameterStore): R;
|
|
13
|
+
}
|
|
14
|
+
export declare class JsonParameterStore extends JsonEntityStore {
|
|
15
|
+
paramType: string;
|
|
16
|
+
expression: string;
|
|
17
|
+
dataPath: string;
|
|
18
|
+
/**
|
|
19
|
+
* Define pipes can be called by the framework to transform input parameter
|
|
20
|
+
*/
|
|
21
|
+
pipes: Type<PipeMethods>[];
|
|
22
|
+
/**
|
|
23
|
+
* Ref to JsonParameter when the decorated object is a parameter.
|
|
24
|
+
*/
|
|
25
|
+
readonly parameter: JsonParameter;
|
|
26
|
+
readonly parent: JsonMethodStore;
|
|
27
|
+
constructor(options: JsonParameterStoreOptions);
|
|
28
|
+
get nestedGenerics(): Type<any>[][];
|
|
29
|
+
set nestedGenerics(nestedGenerics: Type<any>[][]);
|
|
30
|
+
/**
|
|
31
|
+
* Return the required state.
|
|
32
|
+
* @returns {boolean}
|
|
33
|
+
*/
|
|
34
|
+
get required(): boolean;
|
|
35
|
+
set required(value: boolean);
|
|
36
|
+
get allowedRequiredValues(): any[];
|
|
37
|
+
static getParams<T extends JsonParameterStore = JsonParameterStore>(target: Type<any>, propertyKey: string | symbol): T[];
|
|
38
|
+
static get(target: Type<any>, propertyKey: string | symbol, index: number): JsonParameterStore;
|
|
39
|
+
/**
|
|
40
|
+
* Check precondition between value, required and allowedRequiredValues to know if the entity is required.
|
|
41
|
+
* @param value
|
|
42
|
+
* @returns {boolean}
|
|
43
|
+
*/
|
|
44
|
+
isRequired(value: any): boolean;
|
|
45
|
+
protected getSchema(type: any): JsonSchema;
|
|
46
|
+
protected build(): void;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @alias JsonParameterStore
|
|
50
|
+
*/
|
|
51
|
+
export declare type ParamMetadata = JsonParameterStore;
|
|
52
|
+
export declare const ParamMetadata: typeof JsonParameterStore;
|
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Type } from "@tsed/core";
|
|
2
|
+
import { JsonEntityStore } from "./JsonEntityStore";
|
|
3
|
+
import type { JsonClassStore } from "./JsonClassStore";
|
|
4
|
+
export declare class JsonPropertyStore extends JsonEntityStore {
|
|
5
|
+
readonly parent: JsonClassStore;
|
|
6
|
+
/**
|
|
7
|
+
* Return the required state.
|
|
8
|
+
* @returns {boolean}
|
|
9
|
+
*/
|
|
10
|
+
get required(): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Change the state of the required data.
|
|
13
|
+
* @param value
|
|
14
|
+
*/
|
|
15
|
+
set required(value: boolean);
|
|
16
|
+
get allowedRequiredValues(): any[];
|
|
17
|
+
/**
|
|
18
|
+
* Check precondition between value, required and allowedRequiredValues to know if the entity is required.
|
|
19
|
+
* @param value
|
|
20
|
+
* @returns {boolean}
|
|
21
|
+
*/
|
|
22
|
+
isRequired(value: any): boolean;
|
|
23
|
+
protected build(): void;
|
|
24
|
+
static get(target: Type<any>, propertyKey: string | symbol): JsonPropertyStore;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @alias JsonPropertyStore
|
|
28
|
+
*/
|
|
29
|
+
export declare type PropertyMetadata = JsonPropertyStore;
|
|
30
|
+
export declare const PropertyMetadata: typeof JsonPropertyStore;
|
|
File without changes
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OS3MediaType, OS3Response } from "@tsed/openspec";
|
|
2
|
-
import { JsonHeader
|
|
2
|
+
import { JsonHeader } from "../interfaces/JsonOpenSpec";
|
|
3
|
+
import { JsonSchemaOptions } from "../interfaces/JsonSchemaOptions";
|
|
3
4
|
import { JsonMap } from "./JsonMap";
|
|
4
5
|
import { JsonSchema } from "./JsonSchema";
|
|
5
6
|
export declare type JsonResponseOptions = OS3Response<JsonSchema, string | JsonHeader>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Hooks, Type, ValueOf } from "@tsed/core";
|
|
2
|
-
import { JSONSchema6, JSONSchema6Definition, JSONSchema6Type, JSONSchema6TypeName, JSONSchema6Version } from "json-schema";
|
|
3
|
-
import { JsonSchemaOptions } from "../interfaces";
|
|
2
|
+
import type { JSONSchema6, JSONSchema6Definition, JSONSchema6Type, JSONSchema6TypeName, JSONSchema6Version } from "json-schema";
|
|
3
|
+
import { JsonSchemaOptions } from "../interfaces/JsonSchemaOptions";
|
|
4
4
|
import { IgnoreCallback } from "../interfaces/IgnoreCallback";
|
|
5
5
|
import { NestedGenerics } from "../utils/generics";
|
|
6
6
|
import { AliasMap, AliasType } from "./JsonAliasMap";
|
|
@@ -14,29 +14,19 @@ export interface JsonSchemaObject extends JSONSchema6, Record<string, any> {
|
|
|
14
14
|
}
|
|
15
15
|
export declare type AnyJsonSchema = Partial<JsonSchemaObject> | JsonSchema | JsonLazyRef | any;
|
|
16
16
|
export declare class JsonSchema extends Map<string, any> implements NestedGenerics {
|
|
17
|
+
#private;
|
|
17
18
|
readonly isJsonSchema = true;
|
|
18
19
|
readonly $hooks: Hooks;
|
|
19
20
|
readonly $required: Set<string>;
|
|
20
21
|
readonly $allow: any[];
|
|
21
22
|
$selfRequired: boolean;
|
|
22
23
|
$forwardGroups: boolean;
|
|
23
|
-
protected _nullable: boolean;
|
|
24
|
-
protected _genericLabels: string[];
|
|
25
|
-
protected _nestedGenerics: Type<any>[][];
|
|
26
|
-
protected _alias: AliasMap;
|
|
27
|
-
protected _itemSchema: JsonSchema;
|
|
28
|
-
protected _target: Type<any>;
|
|
29
|
-
protected _isGeneric: boolean;
|
|
30
|
-
protected _isCollection: boolean;
|
|
31
|
-
protected _ref: boolean;
|
|
32
24
|
constructor(obj?: JsonSchema | Partial<JsonSchemaObject>);
|
|
33
25
|
get alias(): AliasMap;
|
|
34
26
|
get nestedGenerics(): any[];
|
|
35
27
|
set nestedGenerics(value: any[]);
|
|
36
28
|
get genericLabels(): string[];
|
|
37
29
|
set genericLabels(value: string[]);
|
|
38
|
-
get nullable(): boolean;
|
|
39
|
-
set nullable(value: boolean);
|
|
40
30
|
get isClass(): boolean;
|
|
41
31
|
/**
|
|
42
32
|
* Current schema is a collection
|
|
@@ -53,7 +43,11 @@ export declare class JsonSchema extends Map<string, any> implements NestedGeneri
|
|
|
53
43
|
get genericType(): string;
|
|
54
44
|
get class(): any;
|
|
55
45
|
get canRef(): boolean;
|
|
46
|
+
get isNullable(): boolean;
|
|
47
|
+
get isReadOnly(): any;
|
|
48
|
+
get isWriteOnly(): any;
|
|
56
49
|
static from(obj?: Partial<JsonSchemaObject>): JsonSchema;
|
|
50
|
+
nullable(value: boolean): void;
|
|
57
51
|
itemSchema(obj?: AnyJsonSchema): JsonSchema;
|
|
58
52
|
getAliasOf(property: AliasType): AliasType | undefined;
|
|
59
53
|
addAlias(property: AliasType, alias: AliasType): this;
|
|
@@ -224,7 +218,7 @@ export declare class JsonSchema extends Map<string, any> implements NestedGeneri
|
|
|
224
218
|
*
|
|
225
219
|
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.23
|
|
226
220
|
*/
|
|
227
|
-
enum(enumValues:
|
|
221
|
+
enum(...enumValues: any[]): this;
|
|
228
222
|
/**
|
|
229
223
|
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.1
|
|
230
224
|
*/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Automatically generated by barrelsby.
|
|
3
|
+
*/
|
|
4
|
+
export * from "./components/anyMapper";
|
|
5
|
+
export * from "./components/classMapper";
|
|
6
|
+
export * from "./components/genericsMapper";
|
|
7
|
+
export * from "./components/inheritedClassMapper";
|
|
8
|
+
export * from "./components/itemMapper";
|
|
9
|
+
export * from "./components/lazyRefMapper";
|
|
10
|
+
export * from "./components/mapMapper";
|
|
11
|
+
export * from "./components/objectMapper";
|
|
12
|
+
export * from "./components/ofMapper";
|
|
13
|
+
export * from "./components/propertiesMapper";
|
|
14
|
+
export * from "./components/schemaMapper";
|
|
15
|
+
export * from "./constants/httpMethods";
|
|
16
|
+
export * from "./constants/httpStatusMessages";
|
|
17
|
+
export * from "./decorators/class/children";
|
|
18
|
+
export * from "./decorators/collections/collectionContains";
|
|
19
|
+
export * from "./decorators/collections/collectionOf";
|
|
20
|
+
export * from "./decorators/collections/maxItems";
|
|
21
|
+
export * from "./decorators/collections/maxProperties";
|
|
22
|
+
export * from "./decorators/collections/minItems";
|
|
23
|
+
export * from "./decorators/collections/minProperties";
|
|
24
|
+
export * from "./decorators/collections/uniqueItems";
|
|
25
|
+
export * from "./decorators/common/additionalProperties";
|
|
26
|
+
export * from "./decorators/common/allOf";
|
|
27
|
+
export * from "./decorators/common/allow";
|
|
28
|
+
export * from "./decorators/common/any";
|
|
29
|
+
export * from "./decorators/common/anyOf";
|
|
30
|
+
export * from "./decorators/common/const";
|
|
31
|
+
export * from "./decorators/common/customKey";
|
|
32
|
+
export * from "./decorators/common/default";
|
|
33
|
+
export * from "./decorators/common/description";
|
|
34
|
+
export * from "./decorators/common/enum";
|
|
35
|
+
export * from "./decorators/common/example";
|
|
36
|
+
export * from "./decorators/common/examples";
|
|
37
|
+
export * from "./decorators/common/exclusiveMaximum";
|
|
38
|
+
export * from "./decorators/common/exclusiveMinimum";
|
|
39
|
+
export * from "./decorators/common/format";
|
|
40
|
+
export * from "./decorators/common/forwardGroups";
|
|
41
|
+
export * from "./decorators/common/groups";
|
|
42
|
+
export * from "./decorators/common/hidden";
|
|
43
|
+
export * from "./decorators/common/ignore";
|
|
44
|
+
export * from "./decorators/common/integer";
|
|
45
|
+
export * from "./decorators/common/jsonEntityFn";
|
|
46
|
+
export * from "./decorators/common/maxLength";
|
|
47
|
+
export * from "./decorators/common/maximum";
|
|
48
|
+
export * from "./decorators/common/minLength";
|
|
49
|
+
export * from "./decorators/common/minimum";
|
|
50
|
+
export * from "./decorators/common/multipleOf";
|
|
51
|
+
export * from "./decorators/common/name";
|
|
52
|
+
export * from "./decorators/common/nullable";
|
|
53
|
+
export * from "./decorators/common/oneOf";
|
|
54
|
+
export * from "./decorators/common/optional";
|
|
55
|
+
export * from "./decorators/common/pattern";
|
|
56
|
+
export * from "./decorators/common/property";
|
|
57
|
+
export * from "./decorators/common/readOnly";
|
|
58
|
+
export * from "./decorators/common/recordOf";
|
|
59
|
+
export * from "./decorators/common/required";
|
|
60
|
+
export * from "./decorators/common/requiredGroups";
|
|
61
|
+
export * from "./decorators/common/schema";
|
|
62
|
+
export * from "./decorators/common/title";
|
|
63
|
+
export * from "./decorators/common/writeOnly";
|
|
64
|
+
export * from "./decorators/config/jsonEntityComponent";
|
|
65
|
+
export * from "./decorators/generics/genericOf";
|
|
66
|
+
export * from "./decorators/generics/generics";
|
|
67
|
+
export * from "./decorators/operations/acceptMime";
|
|
68
|
+
export * from "./decorators/operations/consumes";
|
|
69
|
+
export * from "./decorators/operations/contentType";
|
|
70
|
+
export * from "./decorators/operations/deprecated";
|
|
71
|
+
export * from "./decorators/operations/header";
|
|
72
|
+
export * from "./decorators/operations/in";
|
|
73
|
+
export * from "./decorators/operations/inFile";
|
|
74
|
+
export * from "./decorators/operations/location";
|
|
75
|
+
export * from "./decorators/operations/operationId";
|
|
76
|
+
export * from "./decorators/operations/operationPath";
|
|
77
|
+
export * from "./decorators/operations/partial";
|
|
78
|
+
export * from "./decorators/operations/path";
|
|
79
|
+
export * from "./decorators/operations/produces";
|
|
80
|
+
export * from "./decorators/operations/redirect";
|
|
81
|
+
export * from "./decorators/operations/returns";
|
|
82
|
+
export * from "./decorators/operations/route";
|
|
83
|
+
export * from "./decorators/operations/security";
|
|
84
|
+
export * from "./decorators/operations/status";
|
|
85
|
+
export * from "./decorators/operations/summary";
|
|
86
|
+
export * from "./decorators/operations/tags";
|
|
87
|
+
export * from "./decorators/operations/view";
|
|
88
|
+
export * from "./domain/DecoratorContext";
|
|
89
|
+
export * from "./domain/JsonAliasMap";
|
|
90
|
+
export * from "./domain/JsonClassStore";
|
|
91
|
+
export * from "./domain/JsonEntityStore";
|
|
92
|
+
export * from "./domain/JsonFormatTypes";
|
|
93
|
+
export * from "./domain/JsonLazyRef";
|
|
94
|
+
export * from "./domain/JsonMap";
|
|
95
|
+
export * from "./domain/JsonMethodStore";
|
|
96
|
+
export * from "./domain/JsonOperation";
|
|
97
|
+
export * from "./domain/JsonOperationPathsMap";
|
|
98
|
+
export * from "./domain/JsonOperationRoute";
|
|
99
|
+
export * from "./domain/JsonParameter";
|
|
100
|
+
export * from "./domain/JsonParameterStore";
|
|
101
|
+
export * from "./domain/JsonParameterTypes";
|
|
102
|
+
export * from "./domain/JsonPropertyStore";
|
|
103
|
+
export * from "./domain/JsonRequestBody";
|
|
104
|
+
export * from "./domain/JsonResponse";
|
|
105
|
+
export * from "./domain/JsonSchema";
|
|
106
|
+
export * from "./domain/SpecTypes";
|
|
107
|
+
export * from "./hooks/alterIgnore";
|
|
108
|
+
export * from "./hooks/alterOneOf";
|
|
109
|
+
export * from "./hooks/alterRequiredGroups";
|
|
110
|
+
export * from "./interfaces/IgnoreCallback";
|
|
111
|
+
export * from "./interfaces/JsonHookContext";
|
|
112
|
+
export * from "./interfaces/JsonOpenSpec";
|
|
113
|
+
export * from "./interfaces/JsonSchemaOptions";
|
|
114
|
+
export * from "./registries/JsonSchemaMapperContainer";
|
|
115
|
+
export * from "./utils/buildPath";
|
|
116
|
+
export * from "./utils/concatParameters";
|
|
117
|
+
export * from "./utils/concatPath";
|
|
118
|
+
export * from "./utils/defineStatusModel";
|
|
119
|
+
export * from "./utils/from";
|
|
120
|
+
export * from "./utils/generateSpec";
|
|
121
|
+
export * from "./utils/generics";
|
|
122
|
+
export * from "./utils/getComputedType";
|
|
123
|
+
export * from "./utils/getInheritedStores";
|
|
124
|
+
export * from "./utils/getJsonEntityStore";
|
|
125
|
+
export * from "./utils/getJsonPathParameters";
|
|
126
|
+
export * from "./utils/getJsonSchema";
|
|
127
|
+
export * from "./utils/getJsonType";
|
|
128
|
+
export * from "./utils/getOperationsRoutes";
|
|
129
|
+
export * from "./utils/getOperationsStores";
|
|
130
|
+
export * from "./utils/getPropertiesStores";
|
|
131
|
+
export * from "./utils/getRequiredProperties";
|
|
132
|
+
export * from "./utils/getSpec";
|
|
133
|
+
export * from "./utils/getSpecType";
|
|
134
|
+
export * from "./utils/isSuccessStatus";
|
|
135
|
+
export * from "./utils/mapHeaders";
|
|
136
|
+
export * from "./utils/mapNullableType";
|
|
137
|
+
export * from "./utils/mapOpenSpec";
|
|
138
|
+
export * from "./utils/mapOpenSpec2";
|
|
139
|
+
export * from "./utils/mapOpenSpec3";
|
|
140
|
+
export * from "./utils/mapOpenSpecInfo";
|
|
141
|
+
export * from "./utils/mapRouteOptions";
|
|
142
|
+
export * from "./utils/matchGroups";
|
|
143
|
+
export * from "./utils/mergeOperation";
|
|
144
|
+
export * from "./utils/mergeSpec";
|
|
145
|
+
export * from "./utils/operationIdFormatter";
|
|
146
|
+
export * from "./utils/ref";
|
|
147
|
+
export * from "./utils/serializeEnumValues";
|
|
148
|
+
export * from "./utils/toJsonMapCollection";
|
|
149
|
+
export * from "./utils/toJsonRegex";
|
|
150
|
+
export * from "./utils/transformToOS2";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @ignore
|
|
3
3
|
*/
|
|
4
4
|
export interface JsonSchemaMapper {
|
|
5
|
-
(schema: any, options: any): any;
|
|
5
|
+
(schema: any, options: any, parent?: any): any;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* @ignore
|
|
@@ -15,4 +15,5 @@ export declare function getJsonSchemaMapper(type: string): JsonSchemaMapper;
|
|
|
15
15
|
/**
|
|
16
16
|
* @ignore
|
|
17
17
|
*/
|
|
18
|
-
export declare function execMapper(type: string, schema: any, options: any): any;
|
|
18
|
+
export declare function execMapper(type: string, schema: any, options: any, parent?: any): any;
|
|
19
|
+
export declare function hasMapper(type: string): boolean;
|
|
File without changes
|