@tsed/schema 7.79.4 → 7.80.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/lib/browser/schema.umd.min.js.map +1 -1
  2. package/lib/cjs/components/default/inlineEnumsMapper.js +2 -2
  3. package/lib/cjs/components/default/inlineEnumsMapper.js.map +1 -1
  4. package/lib/cjs/components/default/nullableMapper.js +4 -4
  5. package/lib/cjs/components/default/nullableMapper.js.map +1 -1
  6. package/lib/cjs/components/default/requiredMapper.js +4 -4
  7. package/lib/cjs/components/default/requiredMapper.js.map +1 -1
  8. package/lib/cjs/components/open-spec/nullableMapper.js +4 -4
  9. package/lib/cjs/components/open-spec/nullableMapper.js.map +1 -1
  10. package/lib/cjs/utils/generateSpec.js +1 -24
  11. package/lib/cjs/utils/generateSpec.js.map +1 -1
  12. package/lib/esm/components/default/inlineEnumsMapper.js.map +1 -1
  13. package/lib/esm/components/default/nullableMapper.js.map +1 -1
  14. package/lib/esm/components/default/requiredMapper.js.map +1 -1
  15. package/lib/esm/components/open-spec/nullableMapper.js.map +1 -1
  16. package/lib/esm/utils/getJsonSchema.js +1 -1
  17. package/lib/types/components/default/inlineEnumsMapper.d.ts +2 -2
  18. package/lib/types/components/default/nullableMapper.d.ts +1 -1
  19. package/lib/types/components/default/requiredMapper.d.ts +2 -2
  20. package/lib/types/components/open-spec/nullableMapper.d.ts +1 -1
  21. package/lib/types-esm/components/async-api/channelsMapper.d.ts +2 -0
  22. package/lib/types-esm/components/async-api/generate.d.ts +1 -0
  23. package/lib/types-esm/components/async-api/messageMapper.d.ts +6 -0
  24. package/lib/types-esm/components/async-api/payloadMapper.d.ts +4 -0
  25. package/lib/types-esm/components/async-api/responseMapper.d.ts +6 -0
  26. package/lib/types-esm/components/default/anyMapper.d.ts +2 -0
  27. package/lib/types-esm/components/default/classMapper.d.ts +3 -0
  28. package/lib/types-esm/components/default/genericsMapper.d.ts +5 -0
  29. package/lib/types-esm/components/default/inheritedClassMapper.d.ts +5 -0
  30. package/lib/types-esm/components/default/inlineEnumsMapper.d.ts +3 -0
  31. package/lib/types-esm/components/default/itemMapper.d.ts +2 -0
  32. package/lib/types-esm/components/default/lazyRefMapper.d.ts +3 -0
  33. package/lib/types-esm/components/default/mapMapper.d.ts +9 -0
  34. package/lib/types-esm/components/default/nullableMapper.d.ts +2 -0
  35. package/lib/types-esm/components/default/objectMapper.d.ts +8 -0
  36. package/lib/types-esm/components/default/ofMapper.d.ts +3 -0
  37. package/lib/types-esm/components/default/propertiesMapper.d.ts +3 -0
  38. package/lib/types-esm/components/default/requiredMapper.d.ts +3 -0
  39. package/lib/types-esm/components/default/schemaMapper.d.ts +3 -0
  40. package/lib/types-esm/components/index.d.ts +33 -0
  41. package/lib/types-esm/components/open-spec/generate.d.ts +1 -0
  42. package/lib/types-esm/components/open-spec/nullableMapper.d.ts +2 -0
  43. package/lib/types-esm/components/open-spec/operationInFilesMapper.d.ts +2 -0
  44. package/lib/types-esm/components/open-spec/operationInParameterMapper.d.ts +10 -0
  45. package/lib/types-esm/components/open-spec/operationInParametersMapper.d.ts +3 -0
  46. package/lib/types-esm/components/open-spec/operationInQueryMapper.d.ts +2 -0
  47. package/lib/types-esm/components/open-spec/operationMapper.d.ts +3 -0
  48. package/lib/types-esm/components/open-spec/operationMediaMapper.d.ts +3 -0
  49. package/lib/types-esm/components/open-spec/operationRequestBodyMapper.d.ts +3 -0
  50. package/lib/types-esm/components/open-spec/operationResponseMapper.d.ts +3 -0
  51. package/lib/types-esm/components/open-spec/pathsMapper.d.ts +2 -0
  52. package/lib/types-esm/constants/OperationVerbs.d.ts +20 -0
  53. package/lib/types-esm/constants/httpStatusMessages.d.ts +11 -0
  54. package/lib/types-esm/constants/jsonSchemaProperties.d.ts +7 -0
  55. package/lib/types-esm/decorators/class/children.d.ts +11 -0
  56. package/lib/types-esm/decorators/class/discriminatorValue.d.ts +42 -0
  57. package/lib/types-esm/decorators/collections/collectionContains.d.ts +21 -0
  58. package/lib/types-esm/decorators/collections/collectionOf.d.ts +101 -0
  59. package/lib/types-esm/decorators/collections/maxItems.d.ts +48 -0
  60. package/lib/types-esm/decorators/collections/maxProperties.d.ts +71 -0
  61. package/lib/types-esm/decorators/collections/minItems.d.ts +52 -0
  62. package/lib/types-esm/decorators/collections/minProperties.d.ts +70 -0
  63. package/lib/types-esm/decorators/collections/uniqueItems.d.ts +51 -0
  64. package/lib/types-esm/decorators/common/additionalProperties.d.ts +11 -0
  65. package/lib/types-esm/decorators/common/allOf.d.ts +13 -0
  66. package/lib/types-esm/decorators/common/allow.d.ts +28 -0
  67. package/lib/types-esm/decorators/common/any.d.ts +38 -0
  68. package/lib/types-esm/decorators/common/anyOf.d.ts +17 -0
  69. package/lib/types-esm/decorators/common/const.d.ts +61 -0
  70. package/lib/types-esm/decorators/common/customKey.d.ts +26 -0
  71. package/lib/types-esm/decorators/common/default.d.ts +41 -0
  72. package/lib/types-esm/decorators/common/defaultMsg.d.ts +32 -0
  73. package/lib/types-esm/decorators/common/description.d.ts +53 -0
  74. package/lib/types-esm/decorators/common/discriminatorKey.d.ts +1 -0
  75. package/lib/types-esm/decorators/common/enum.d.ts +101 -0
  76. package/lib/types-esm/decorators/common/errorMsg.d.ts +6 -0
  77. package/lib/types-esm/decorators/common/example.d.ts +11 -0
  78. package/lib/types-esm/decorators/common/examples.d.ts +12 -0
  79. package/lib/types-esm/decorators/common/exclusiveMaximum.d.ts +70 -0
  80. package/lib/types-esm/decorators/common/exclusiveMinimum.d.ts +70 -0
  81. package/lib/types-esm/decorators/common/format.d.ts +466 -0
  82. package/lib/types-esm/decorators/common/forwardGroups.d.ts +10 -0
  83. package/lib/types-esm/decorators/common/groups.d.ts +12 -0
  84. package/lib/types-esm/decorators/common/hidden.d.ts +32 -0
  85. package/lib/types-esm/decorators/common/ignore.d.ts +59 -0
  86. package/lib/types-esm/decorators/common/integer.d.ts +61 -0
  87. package/lib/types-esm/decorators/common/jsonEntityFn.d.ts +21 -0
  88. package/lib/types-esm/decorators/common/maxLength.d.ts +77 -0
  89. package/lib/types-esm/decorators/common/maximum.d.ts +139 -0
  90. package/lib/types-esm/decorators/common/minLength.d.ts +78 -0
  91. package/lib/types-esm/decorators/common/minimum.d.ts +137 -0
  92. package/lib/types-esm/decorators/common/multipleOf.d.ts +69 -0
  93. package/lib/types-esm/decorators/common/name.d.ts +32 -0
  94. package/lib/types-esm/decorators/common/nullable.d.ts +25 -0
  95. package/lib/types-esm/decorators/common/oneOf.d.ts +17 -0
  96. package/lib/types-esm/decorators/common/optional.d.ts +10 -0
  97. package/lib/types-esm/decorators/common/pattern.d.ts +94 -0
  98. package/lib/types-esm/decorators/common/property.d.ts +11 -0
  99. package/lib/types-esm/decorators/common/readOnly.d.ts +11 -0
  100. package/lib/types-esm/decorators/common/recordOf.d.ts +46 -0
  101. package/lib/types-esm/decorators/common/required.d.ts +44 -0
  102. package/lib/types-esm/decorators/common/requiredGroups.d.ts +10 -0
  103. package/lib/types-esm/decorators/common/schema.d.ts +53 -0
  104. package/lib/types-esm/decorators/common/title.d.ts +39 -0
  105. package/lib/types-esm/decorators/common/typeError.d.ts +8 -0
  106. package/lib/types-esm/decorators/common/writeOnly.d.ts +11 -0
  107. package/lib/types-esm/decorators/config/jsonEntityComponent.d.ts +10 -0
  108. package/lib/types-esm/decorators/generics/genericOf.d.ts +76 -0
  109. package/lib/types-esm/decorators/generics/generics.d.ts +14 -0
  110. package/lib/types-esm/decorators/operations/acceptMime.d.ts +19 -0
  111. package/lib/types-esm/decorators/operations/consumes.d.ts +19 -0
  112. package/lib/types-esm/decorators/operations/contentType.d.ts +20 -0
  113. package/lib/types-esm/decorators/operations/deprecated.d.ts +23 -0
  114. package/lib/types-esm/decorators/operations/header.d.ts +49 -0
  115. package/lib/types-esm/decorators/operations/in.d.ts +64 -0
  116. package/lib/types-esm/decorators/operations/inFile.d.ts +25 -0
  117. package/lib/types-esm/decorators/operations/location.d.ts +22 -0
  118. package/lib/types-esm/decorators/operations/operation.d.ts +60 -0
  119. package/lib/types-esm/decorators/operations/operationId.d.ts +10 -0
  120. package/lib/types-esm/decorators/operations/operationPath.d.ts +21 -0
  121. package/lib/types-esm/decorators/operations/partial.d.ts +10 -0
  122. package/lib/types-esm/decorators/operations/path.d.ts +15 -0
  123. package/lib/types-esm/decorators/operations/produces.d.ts +26 -0
  124. package/lib/types-esm/decorators/operations/publish.d.ts +1 -0
  125. package/lib/types-esm/decorators/operations/redirect.d.ts +52 -0
  126. package/lib/types-esm/decorators/operations/returns.d.ts +267 -0
  127. package/lib/types-esm/decorators/operations/route.d.ts +133 -0
  128. package/lib/types-esm/decorators/operations/security.d.ts +23 -0
  129. package/lib/types-esm/decorators/operations/status.d.ts +127 -0
  130. package/lib/types-esm/decorators/operations/subscribe.d.ts +1 -0
  131. package/lib/types-esm/decorators/operations/summary.d.ts +20 -0
  132. package/lib/types-esm/decorators/operations/tags.d.ts +23 -0
  133. package/lib/types-esm/decorators/operations/view.d.ts +23 -0
  134. package/lib/types-esm/domain/DecoratorContext.d.ts +28 -0
  135. package/lib/types-esm/domain/JsonAliasMap.d.ts +12 -0
  136. package/lib/types-esm/domain/JsonClassStore.d.ts +12 -0
  137. package/lib/types-esm/domain/JsonDiscriminator.d.ts +18 -0
  138. package/lib/types-esm/domain/JsonEntityStore.d.ts +110 -0
  139. package/lib/types-esm/domain/JsonFormatTypes.d.ts +17 -0
  140. package/lib/types-esm/domain/JsonLazyRef.d.ts +9 -0
  141. package/lib/types-esm/domain/JsonMap.d.ts +9 -0
  142. package/lib/types-esm/domain/JsonMedia.d.ts +11 -0
  143. package/lib/types-esm/domain/JsonMethodStore.d.ts +92 -0
  144. package/lib/types-esm/domain/JsonOperation.d.ts +51 -0
  145. package/lib/types-esm/domain/JsonOperationPathsMap.d.ts +7 -0
  146. package/lib/types-esm/domain/JsonOperationRoute.d.ts +25 -0
  147. package/lib/types-esm/domain/JsonParameter.d.ts +22 -0
  148. package/lib/types-esm/domain/JsonParameterStore.d.ts +52 -0
  149. package/lib/types-esm/domain/JsonParameterTypes.d.ts +16 -0
  150. package/lib/types-esm/domain/JsonPropertyStore.d.ts +32 -0
  151. package/lib/types-esm/domain/JsonRequestBody.d.ts +12 -0
  152. package/lib/types-esm/domain/JsonResponse.d.ts +18 -0
  153. package/lib/types-esm/domain/JsonSchema.d.ts +340 -0
  154. package/lib/types-esm/domain/SpecTypes.d.ts +6 -0
  155. package/lib/types-esm/hooks/alterIgnore.d.ts +10 -0
  156. package/lib/types-esm/hooks/alterOneOf.d.ts +3 -0
  157. package/lib/types-esm/hooks/alterRequiredGroups.d.ts +6 -0
  158. package/lib/types-esm/index.d.ts +182 -0
  159. package/lib/types-esm/interfaces/IgnoreCallback.d.ts +4 -0
  160. package/lib/types-esm/interfaces/JsonHookContext.d.ts +17 -0
  161. package/lib/types-esm/interfaces/JsonOpenSpec.d.ts +9 -0
  162. package/lib/types-esm/interfaces/JsonSchemaOptions.d.ts +30 -0
  163. package/lib/types-esm/registries/JsonSchemaMapperContainer.d.ts +21 -0
  164. package/lib/types-esm/registries/enumRegistries.d.ts +2 -0
  165. package/lib/types-esm/utils/buildPath.d.ts +6 -0
  166. package/lib/types-esm/utils/concatParameters.d.ts +4 -0
  167. package/lib/types-esm/utils/concatPath.d.ts +1 -0
  168. package/lib/types-esm/utils/defineStatusModel.d.ts +3 -0
  169. package/lib/types-esm/utils/from.d.ts +190 -0
  170. package/lib/types-esm/utils/generateSpec.d.ts +16 -0
  171. package/lib/types-esm/utils/generics.d.ts +50 -0
  172. package/lib/types-esm/utils/getComputedType.d.ts +5 -0
  173. package/lib/types-esm/utils/getInheritedStores.d.ts +8 -0
  174. package/lib/types-esm/utils/getJsonEntityStore.d.ts +15 -0
  175. package/lib/types-esm/utils/getJsonPathParameters.d.ts +7 -0
  176. package/lib/types-esm/utils/getJsonSchema.d.ts +4 -0
  177. package/lib/types-esm/utils/getJsonType.d.ts +5 -0
  178. package/lib/types-esm/utils/getOperationsRoutes.d.ts +10 -0
  179. package/lib/types-esm/utils/getOperationsStores.d.ts +6 -0
  180. package/lib/types-esm/utils/getPropertiesStores.d.ts +20 -0
  181. package/lib/types-esm/utils/getSpec.d.ts +34 -0
  182. package/lib/types-esm/utils/getSpecType.d.ts +12 -0
  183. package/lib/types-esm/utils/isSuccessStatus.d.ts +2 -0
  184. package/lib/types-esm/utils/mapHeaders.d.ts +9 -0
  185. package/lib/types-esm/utils/mapOpenSpec.d.ts +10 -0
  186. package/lib/types-esm/utils/mapOpenSpec2.d.ts +9 -0
  187. package/lib/types-esm/utils/mapOpenSpec3.d.ts +8 -0
  188. package/lib/types-esm/utils/mapOpenSpecInfo.d.ts +6 -0
  189. package/lib/types-esm/utils/mapOperationOptions.d.ts +5 -0
  190. package/lib/types-esm/utils/matchGroups.d.ts +4 -0
  191. package/lib/types-esm/utils/mergeSpec.d.ts +23 -0
  192. package/lib/types-esm/utils/operationIdFormatter.d.ts +6 -0
  193. package/lib/types-esm/utils/ref.d.ts +14 -0
  194. package/lib/types-esm/utils/removeHiddenOperation.d.ts +2 -0
  195. package/lib/types-esm/utils/serializeEnumValues.d.ts +5 -0
  196. package/lib/types-esm/utils/somethingOf.d.ts +1 -0
  197. package/lib/types-esm/utils/toJsonMapCollection.d.ts +7 -0
  198. package/lib/types-esm/utils/toJsonRegex.d.ts +5 -0
  199. package/lib/types-esm/utils/transformToOS2.d.ts +25 -0
  200. package/lib/types-esm/utils/withErrorMsg.d.ts +6 -0
  201. package/package.json +21 -17
  202. package/vitest.config.mts +21 -0
  203. package/jest.config.js +0 -21
  204. package/lib/cjs/package.json +0 -3
  205. package/lib/esm/package.json +0 -3
  206. package/tsconfig.esm.json +0 -36
@@ -0,0 +1,340 @@
1
+ import { Hooks, Type, ValueOf } from "@tsed/core";
2
+ import type { JSONSchema6, JSONSchema6Definition, JSONSchema6Type, JSONSchema6TypeName, JSONSchema6Version } from "json-schema";
3
+ import { IgnoreCallback } from "../interfaces/IgnoreCallback.js";
4
+ import { JsonSchemaOptions } from "../interfaces/JsonSchemaOptions.js";
5
+ import { NestedGenerics } from "../utils/generics.js";
6
+ import { AliasMap, AliasType } from "./JsonAliasMap.js";
7
+ import { Discriminator } from "./JsonDiscriminator.js";
8
+ import { JsonFormatTypes } from "./JsonFormatTypes.js";
9
+ import { JsonLazyRef } from "./JsonLazyRef.js";
10
+ export interface JsonSchemaObject extends JSONSchema6, Record<string, any> {
11
+ type: (any | JSONSchema6TypeName) | (any | JSONSchema6TypeName)[];
12
+ additionalProperties?: boolean | JSONSchema6 | any;
13
+ propertyNames?: boolean | JSONSchema6 | any;
14
+ items?: (any | JSONSchema6Definition) | (any | JSONSchema6Definition)[];
15
+ }
16
+ export type AnyJsonSchema = Partial<JsonSchemaObject> | JsonSchema | JsonLazyRef | any;
17
+ export declare class JsonSchema extends Map<string, any> implements NestedGenerics {
18
+ #private;
19
+ readonly $kind: string;
20
+ readonly $isJsonDocument = true;
21
+ readonly $hooks: Hooks;
22
+ readonly $required: Set<string>;
23
+ readonly $allow: any[];
24
+ $selfRequired: boolean;
25
+ $forwardGroups: boolean;
26
+ $ignore: boolean | IgnoreCallback;
27
+ isDiscriminatorKey: boolean;
28
+ isDiscriminator: boolean;
29
+ constructor(obj?: JsonSchema | Partial<JsonSchemaObject>);
30
+ get alias(): AliasMap;
31
+ get nestedGenerics(): any[];
32
+ set nestedGenerics(value: any[]);
33
+ get genericLabels(): string[];
34
+ set genericLabels(value: string[]);
35
+ get isClass(): boolean;
36
+ /**
37
+ * Current schema is a collection
38
+ */
39
+ get isCollection(): boolean;
40
+ /**
41
+ * Current schema is a generic
42
+ */
43
+ get isGeneric(): boolean;
44
+ get discriminatorAncestor(): any;
45
+ /**
46
+ * Current schema has generics items
47
+ */
48
+ get hasGenerics(): boolean;
49
+ get genericType(): string;
50
+ get class(): any;
51
+ get canRef(): boolean;
52
+ get isNullable(): boolean;
53
+ get isReadOnly(): any;
54
+ get isWriteOnly(): any;
55
+ get hasDiscriminator(): boolean;
56
+ static from(obj?: Partial<JsonSchemaObject>): JsonSchema;
57
+ nullable(value: boolean): void;
58
+ itemSchema(obj?: AnyJsonSchema): JsonSchema;
59
+ getAliasOf(property: AliasType): AliasType | undefined;
60
+ addAlias(property: AliasType, alias: AliasType): this;
61
+ removeAlias(property: AliasType): this;
62
+ $id($id: string): this;
63
+ $ref($ref: string): this;
64
+ $schema($schema: JSONSchema6Version): this;
65
+ /**
66
+ * Create a ref and use name to sharing schema
67
+ * @param name
68
+ */
69
+ label(name: string): this;
70
+ name(name: string): this;
71
+ ignore(cb: boolean | IgnoreCallback): this;
72
+ /**
73
+ * This keyword can be used to supply a default JSON value associated with a particular schema.
74
+ * It is RECOMMENDED that a default value be valid against the associated schema.
75
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.3
76
+ */
77
+ default(value: JSONSchema6Type): this;
78
+ /**
79
+ * More readible form of a one-element "enum"
80
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.24
81
+ */
82
+ const(value: JSONSchema6Type): this;
83
+ /**
84
+ * This attribute is a string that provides a full description of the of purpose the instance property.
85
+ *
86
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.2
87
+ */
88
+ description(description: string): this;
89
+ discriminator(): Discriminator;
90
+ discriminatorKey(propertyName: string): this;
91
+ discriminatorValue(...values: string[]): this;
92
+ /**
93
+ * This keyword determines how child instances validate for arrays, and does not directly validate the immediate instance itself.
94
+ * If "items" is an array of schemas, validation succeeds if every instance element
95
+ * at a position greater than the size of "items" validates against "additionalItems".
96
+ * Otherwise, "additionalItems" MUST be ignored, as the "items" schema
97
+ * (possibly the default value of an empty schema) is applied to all elements.
98
+ * Omitting this keyword has the same behavior as an empty schema.
99
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.10
100
+ */
101
+ additionalItems(additionalItems: boolean | AnyJsonSchema): this;
102
+ /**
103
+ * An array instance is valid against "contains" if at least one of its elements is valid against the given schema.
104
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.14
105
+ */
106
+ contains(contains: JSONSchema6Definition): this;
107
+ /**
108
+ * Array of examples with no validation effect the value of "default" is usable as an example without repeating it under this keyword
109
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.4
110
+ */
111
+ examples(examples: JSONSchema6Type[]): this;
112
+ /**
113
+ * Array of examples with no validation effect the value of "default" is usable as an example without repeating it under this keyword
114
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.4
115
+ */
116
+ example(...examples: JSONSchema6Type[]): this;
117
+ /**
118
+ * This keyword determines how child instances validate for arrays, and does not directly validate the immediate instance itself.
119
+ * Omitting this keyword has the same behavior as an empty schema.
120
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.9
121
+ */
122
+ items(items: AnyJsonSchema | AnyJsonSchema[]): this;
123
+ /**
124
+ * Must be a non-negative integer.
125
+ * An array instance is valid against "maxItems" if its size is less than, or equal to, the value of this keyword.
126
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.11
127
+ */
128
+ maxItems(maxItems: number): this;
129
+ /**
130
+ * Must be a non-negative integer.
131
+ * An array instance is valid against "maxItems" if its size is greater than, or equal to, the value of this keyword.
132
+ * Omitting this keyword has the same behavior as a value of 0.
133
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.12
134
+ */
135
+ minItems(minItems: number): this;
136
+ /**
137
+ * If this keyword has boolean value false, the instance validates successfully.
138
+ * If it has boolean value true, the instance validates successfully if all of its elements are unique.
139
+ * Omitting this keyword has the same behavior as a value of false.
140
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.13
141
+ */
142
+ uniqueItems(uniqueItems: boolean): this;
143
+ /**
144
+ * Must be a non-negative integer.
145
+ * An object instance is valid against "maxProperties" if its number of properties is less than, or equal to, the value of this keyword.
146
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.15
147
+ */
148
+ maxProperties(maxProperties: number): this;
149
+ /**
150
+ * Must be a non-negative integer.
151
+ * An object instance is valid against "maxProperties" if its number of properties is greater than,
152
+ * or equal to, the value of this keyword.
153
+ * Omitting this keyword has the same behavior as a value of 0.
154
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.16
155
+ */
156
+ minProperties(minProperties: number): this;
157
+ allow(...allow: any[]): this;
158
+ /**
159
+ * Elements of this array must be unique.
160
+ * An object instance is valid against this keyword if every item in the array is the name of a property in the instance.
161
+ * Omitting this keyword has the same behavior as an empty array.
162
+ *
163
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.17
164
+ */
165
+ required(required?: boolean | string[]): JsonSchema;
166
+ addRequired(property: string): this;
167
+ removeRequired(property: string): this;
168
+ isRequired(property: string): boolean;
169
+ /**
170
+ * This keyword determines how child instances validate for objects, and does not directly validate the immediate instance itself.
171
+ * Validation succeeds if, for each name that appears in both the instance and as a name within this keyword's value,
172
+ * the child instance for that name successfully validates against the corresponding schema.
173
+ * Omitting this keyword has the same behavior as an empty object.
174
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.18
175
+ */
176
+ properties(properties: AnyJsonSchema | Record<string, AnyJsonSchema>): this;
177
+ addProperty(key: string, schema: AnyJsonSchema): this;
178
+ /**
179
+ * This attribute is an object that defines the schema for a set of property names of an object instance.
180
+ * The name of each property of this attribute's object is a regular expression pattern in the ECMA 262, while the value is a schema.
181
+ * If the pattern matches the name of a property on the instance object, the value of the instance's property
182
+ * MUST be valid against the pattern name's schema value.
183
+ * Omitting this keyword has the same behavior as an empty object.
184
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.19
185
+ */
186
+ patternProperties(patternProperties: Record<string, AnyJsonSchema>): this;
187
+ /**
188
+ * This attribute defines a schema for all properties that are not explicitly defined in an object type definition.
189
+ * If specified, the value MUST be a schema or a boolean.
190
+ * If false is provided, no additional properties are allowed beyond the properties defined in the schema.
191
+ * The default value is an empty schema which allows any value for additional properties.
192
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.20
193
+ */
194
+ additionalProperties(additionalProperties: boolean | AnyJsonSchema): this;
195
+ /**
196
+ * This attribute defines a schema for all properties that are not explicitly defined in an object type definition.
197
+ * If specified, the value MUST be a schema or a boolean.
198
+ * If false is provided, no additional properties are allowed beyond the properties defined in the schema.
199
+ * The default value is an empty schema which allows any value for additional properties.
200
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.20
201
+ * @alias additionalProperties
202
+ * @param unknown
203
+ */
204
+ unknown(unknown?: boolean): this;
205
+ /**
206
+ * This keyword specifies rules that are evaluated if the instance is an object and contains a certain property.
207
+ * Each property specifies a dependency.
208
+ * If the dependency value is an array, each element in the array must be unique.
209
+ * Omitting this keyword has the same behavior as an empty object.
210
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.21
211
+ */
212
+ dependencies(dependencies: {
213
+ [p: string]: JSONSchema6Definition | JsonSchema | string[];
214
+ }): this;
215
+ /**
216
+ * Takes a schema which validates the names of all properties rather than their values.
217
+ * Note the property name that the schema is testing will always be a string.
218
+ * Omitting this keyword has the same behavior as an empty schema.
219
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.22
220
+ */
221
+ propertyNames(propertyNames: JSONSchema6Definition | JsonSchema): this;
222
+ /**
223
+ * This provides an enumeration of all possible values that are valid
224
+ * for the instance property. This MUST be an array, and each item in
225
+ * the array represents a possible value for the instance value. If
226
+ * this attribute is defined, the instance value MUST be one of the
227
+ * values in the array in order for the schema to be valid.
228
+ *
229
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.23
230
+ */
231
+ enum(...enumValues: any[]): this;
232
+ enum(enumSchema: JsonSchema): this;
233
+ /**
234
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.1
235
+ */
236
+ definitions(definitions: Record<string, AnyJsonSchema>): this;
237
+ /**
238
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.26
239
+ */
240
+ allOf(allOf: AnyJsonSchema[]): this;
241
+ /**
242
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.27
243
+ */
244
+ anyOf(anyOf: AnyJsonSchema[]): this;
245
+ oneOf(oneOf: AnyJsonSchema[]): this;
246
+ /**
247
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.29
248
+ */
249
+ not(not: AnyJsonSchema): this;
250
+ /**
251
+ * Must be strictly greater than 0.
252
+ * A numeric instance is valid only if division by this keyword's value results in an integer.
253
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.1
254
+ */
255
+ multipleOf(multipleOf: number): this;
256
+ /**
257
+ * Representing an inclusive upper limit for a numeric instance.
258
+ * This keyword validates only if the instance is less than or exactly equal to "maximum".
259
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.2
260
+ */
261
+ maximum(maximum: number): this;
262
+ /**
263
+ * Representing an exclusive upper limit for a numeric instance.
264
+ * This keyword validates only if the instance is strictly less than (not equal to) to "exclusiveMaximum".
265
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.3
266
+ */
267
+ exclusiveMaximum(exclusiveMaximum: number): this;
268
+ /**
269
+ * Representing an inclusive lower limit for a numeric instance.
270
+ * This keyword validates only if the instance is greater than or exactly equal to "minimum".
271
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.4
272
+ */
273
+ minimum(minimum: number): this;
274
+ /**
275
+ * Representing an exclusive lower limit for a numeric instance.
276
+ * This keyword validates only if the instance is strictly greater than (not equal to) to "exclusiveMinimum".
277
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.5
278
+ */
279
+ exclusiveMinimum(exclusiveMinimum: number): this;
280
+ /**
281
+ * Must be a non-negative integer.
282
+ * A string instance is valid against this keyword if its length is less than, or equal to, the value of this keyword.
283
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.6
284
+ */
285
+ maxLength(maxLength: number): this;
286
+ /**
287
+ * Must be a non-negative integer.
288
+ * A string instance is valid against this keyword if its length is greater than, or equal to, the value of this keyword.
289
+ * Omitting this keyword has the same behavior as a value of 0.
290
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.7
291
+ */
292
+ minLength(minLength: number): this;
293
+ /**
294
+ * Should be a valid regular expression, according to the ECMA 262 regular expression dialect.
295
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.8
296
+ */
297
+ pattern(pattern: string | RegExp): this;
298
+ /**
299
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-8
300
+ */
301
+ format(format: JsonFormatTypes | ValueOf<JsonFormatTypes>): this;
302
+ /**
303
+ * A single type, or a union of simple types
304
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.25
305
+ */
306
+ type(type: any | JSONSchema6TypeName | JSONSchema6TypeName[]): this;
307
+ any(...types: any[]): this;
308
+ integer(): this;
309
+ /**
310
+ * This attribute is a string that provides a short description of the instance property.
311
+ *
312
+ * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.2
313
+ */
314
+ title(title: string): this;
315
+ readOnly(readOnly: boolean): this;
316
+ writeOnly(readOnly: boolean): this;
317
+ customKey(key: string, value: any): this;
318
+ toObject(options?: JsonSchemaOptions): any;
319
+ toJSON(options?: JsonSchemaOptions): any;
320
+ assign(obj?: JsonSchema | Partial<JsonSchemaObject>): this;
321
+ set(key: string, value: any): this;
322
+ /**
323
+ * Return the itemSchema computed type.
324
+ * If the type is a function used for recursive model,
325
+ * the function will be called to get the right type.
326
+ */
327
+ getComputedType(): any;
328
+ getComputedItemType(): any;
329
+ /**
330
+ * Return the Json type as string
331
+ */
332
+ getJsonType(): string | string[];
333
+ getTarget(): Type<any>;
334
+ /**
335
+ * Get the symbolic name of the entity
336
+ */
337
+ getName(): any;
338
+ clone(): JsonSchema;
339
+ protected setManyOf(keyword: "oneOf" | "anyOf" | "allOf", value: AnyJsonSchema[]): this | undefined;
340
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum SpecTypes {
2
+ JSON = "jsonschema",
3
+ SWAGGER = "swagger2",
4
+ OPENAPI = "openapi3",
5
+ ASYNCAPI = "asyncapi2"
6
+ }
@@ -0,0 +1,10 @@
1
+ import { Hooks } from "@tsed/core";
2
+ /**
3
+ * @ignore
4
+ * @param schema
5
+ * @param options
6
+ */
7
+ export declare function alterIgnore(schema: {
8
+ $hooks: Hooks;
9
+ $ignore: boolean | Function;
10
+ }, options: any): boolean;
@@ -0,0 +1,3 @@
1
+ import type { JsonSchema } from "../domain/JsonSchema.js";
2
+ import type { JsonSchemaOptions } from "../interfaces/JsonSchemaOptions.js";
3
+ export declare function alterOneOf(obj: any, schema: JsonSchema, options: JsonSchemaOptions): any;
@@ -0,0 +1,6 @@
1
+ import type { JsonSchema } from "../domain/JsonSchema.js";
2
+ import type { JsonSchemaOptions } from "../interfaces/JsonSchemaOptions.js";
3
+ /**
4
+ * @ignore
5
+ */
6
+ export declare function alterRequiredGroups(required: string[], schema: JsonSchema, options: JsonSchemaOptions): string[];
@@ -0,0 +1,182 @@
1
+ /**
2
+ * @file Automatically generated by @tsed/barrels.
3
+ */
4
+ export * from "./components/async-api/channelsMapper.js";
5
+ export * from "./components/async-api/generate.js";
6
+ export * from "./components/async-api/messageMapper.js";
7
+ export * from "./components/async-api/payloadMapper.js";
8
+ export * from "./components/async-api/responseMapper.js";
9
+ export * from "./components/default/anyMapper.js";
10
+ export * from "./components/default/classMapper.js";
11
+ export * from "./components/default/genericsMapper.js";
12
+ export * from "./components/default/inheritedClassMapper.js";
13
+ export * from "./components/default/inlineEnumsMapper.js";
14
+ export * from "./components/default/itemMapper.js";
15
+ export * from "./components/default/lazyRefMapper.js";
16
+ export * from "./components/default/mapMapper.js";
17
+ export * from "./components/default/nullableMapper.js";
18
+ export * from "./components/default/objectMapper.js";
19
+ export * from "./components/default/ofMapper.js";
20
+ export * from "./components/default/propertiesMapper.js";
21
+ export * from "./components/default/requiredMapper.js";
22
+ export * from "./components/default/schemaMapper.js";
23
+ export * from "./components/index.js";
24
+ export * from "./components/open-spec/generate.js";
25
+ export * from "./components/open-spec/nullableMapper.js";
26
+ export * from "./components/open-spec/operationInFilesMapper.js";
27
+ export * from "./components/open-spec/operationInParameterMapper.js";
28
+ export * from "./components/open-spec/operationInParametersMapper.js";
29
+ export * from "./components/open-spec/operationInQueryMapper.js";
30
+ export * from "./components/open-spec/operationMapper.js";
31
+ export * from "./components/open-spec/operationMediaMapper.js";
32
+ export * from "./components/open-spec/operationRequestBodyMapper.js";
33
+ export * from "./components/open-spec/operationResponseMapper.js";
34
+ export * from "./components/open-spec/pathsMapper.js";
35
+ export * from "./constants/httpStatusMessages.js";
36
+ export * from "./constants/jsonSchemaProperties.js";
37
+ export * from "./constants/OperationVerbs.js";
38
+ export * from "./decorators/class/children.js";
39
+ export * from "./decorators/class/discriminatorValue.js";
40
+ export * from "./decorators/collections/collectionContains.js";
41
+ export * from "./decorators/collections/collectionOf.js";
42
+ export * from "./decorators/collections/maxItems.js";
43
+ export * from "./decorators/collections/maxProperties.js";
44
+ export * from "./decorators/collections/minItems.js";
45
+ export * from "./decorators/collections/minProperties.js";
46
+ export * from "./decorators/collections/uniqueItems.js";
47
+ export * from "./decorators/common/additionalProperties.js";
48
+ export * from "./decorators/common/allOf.js";
49
+ export * from "./decorators/common/allow.js";
50
+ export * from "./decorators/common/any.js";
51
+ export * from "./decorators/common/anyOf.js";
52
+ export * from "./decorators/common/const.js";
53
+ export * from "./decorators/common/customKey.js";
54
+ export * from "./decorators/common/default.js";
55
+ export * from "./decorators/common/defaultMsg.js";
56
+ export * from "./decorators/common/description.js";
57
+ export * from "./decorators/common/discriminatorKey.js";
58
+ export * from "./decorators/common/enum.js";
59
+ export * from "./decorators/common/errorMsg.js";
60
+ export * from "./decorators/common/example.js";
61
+ export * from "./decorators/common/examples.js";
62
+ export * from "./decorators/common/exclusiveMaximum.js";
63
+ export * from "./decorators/common/exclusiveMinimum.js";
64
+ export * from "./decorators/common/format.js";
65
+ export * from "./decorators/common/forwardGroups.js";
66
+ export * from "./decorators/common/groups.js";
67
+ export * from "./decorators/common/hidden.js";
68
+ export * from "./decorators/common/ignore.js";
69
+ export * from "./decorators/common/integer.js";
70
+ export * from "./decorators/common/jsonEntityFn.js";
71
+ export * from "./decorators/common/maximum.js";
72
+ export * from "./decorators/common/maxLength.js";
73
+ export * from "./decorators/common/minimum.js";
74
+ export * from "./decorators/common/minLength.js";
75
+ export * from "./decorators/common/multipleOf.js";
76
+ export * from "./decorators/common/name.js";
77
+ export * from "./decorators/common/nullable.js";
78
+ export * from "./decorators/common/oneOf.js";
79
+ export * from "./decorators/common/optional.js";
80
+ export * from "./decorators/common/pattern.js";
81
+ export * from "./decorators/common/property.js";
82
+ export * from "./decorators/common/readOnly.js";
83
+ export * from "./decorators/common/recordOf.js";
84
+ export * from "./decorators/common/required.js";
85
+ export * from "./decorators/common/requiredGroups.js";
86
+ export * from "./decorators/common/schema.js";
87
+ export * from "./decorators/common/title.js";
88
+ export * from "./decorators/common/typeError.js";
89
+ export * from "./decorators/common/writeOnly.js";
90
+ export * from "./decorators/config/jsonEntityComponent.js";
91
+ export * from "./decorators/generics/genericOf.js";
92
+ export * from "./decorators/generics/generics.js";
93
+ export * from "./decorators/operations/acceptMime.js";
94
+ export * from "./decorators/operations/consumes.js";
95
+ export * from "./decorators/operations/contentType.js";
96
+ export * from "./decorators/operations/deprecated.js";
97
+ export * from "./decorators/operations/header.js";
98
+ export * from "./decorators/operations/in.js";
99
+ export * from "./decorators/operations/inFile.js";
100
+ export * from "./decorators/operations/location.js";
101
+ export * from "./decorators/operations/operation.js";
102
+ export * from "./decorators/operations/operationId.js";
103
+ export * from "./decorators/operations/operationPath.js";
104
+ export * from "./decorators/operations/partial.js";
105
+ export * from "./decorators/operations/path.js";
106
+ export * from "./decorators/operations/produces.js";
107
+ export * from "./decorators/operations/publish.js";
108
+ export * from "./decorators/operations/redirect.js";
109
+ export * from "./decorators/operations/returns.js";
110
+ export * from "./decorators/operations/route.js";
111
+ export * from "./decorators/operations/security.js";
112
+ export * from "./decorators/operations/status.js";
113
+ export * from "./decorators/operations/subscribe.js";
114
+ export * from "./decorators/operations/summary.js";
115
+ export * from "./decorators/operations/tags.js";
116
+ export * from "./decorators/operations/view.js";
117
+ export * from "./domain/DecoratorContext.js";
118
+ export * from "./domain/JsonAliasMap.js";
119
+ export * from "./domain/JsonClassStore.js";
120
+ export * from "./domain/JsonDiscriminator.js";
121
+ export * from "./domain/JsonEntityStore.js";
122
+ export * from "./domain/JsonFormatTypes.js";
123
+ export * from "./domain/JsonLazyRef.js";
124
+ export * from "./domain/JsonMap.js";
125
+ export * from "./domain/JsonMedia.js";
126
+ export * from "./domain/JsonMethodStore.js";
127
+ export * from "./domain/JsonOperation.js";
128
+ export * from "./domain/JsonOperationPathsMap.js";
129
+ export * from "./domain/JsonOperationRoute.js";
130
+ export * from "./domain/JsonParameter.js";
131
+ export * from "./domain/JsonParameterStore.js";
132
+ export * from "./domain/JsonParameterTypes.js";
133
+ export * from "./domain/JsonPropertyStore.js";
134
+ export * from "./domain/JsonRequestBody.js";
135
+ export * from "./domain/JsonResponse.js";
136
+ export * from "./domain/JsonSchema.js";
137
+ export * from "./domain/SpecTypes.js";
138
+ export * from "./hooks/alterIgnore.js";
139
+ export * from "./hooks/alterOneOf.js";
140
+ export * from "./hooks/alterRequiredGroups.js";
141
+ export * from "./interfaces/IgnoreCallback.js";
142
+ export * from "./interfaces/JsonHookContext.js";
143
+ export * from "./interfaces/JsonOpenSpec.js";
144
+ export * from "./interfaces/JsonSchemaOptions.js";
145
+ export * from "./registries/enumRegistries.js";
146
+ export * from "./registries/JsonSchemaMapperContainer.js";
147
+ export * from "./utils/buildPath.js";
148
+ export * from "./utils/concatParameters.js";
149
+ export * from "./utils/concatPath.js";
150
+ export * from "./utils/defineStatusModel.js";
151
+ export * from "./utils/from.js";
152
+ export * from "./utils/generateSpec.js";
153
+ export * from "./utils/generics.js";
154
+ export * from "./utils/getComputedType.js";
155
+ export * from "./utils/getInheritedStores.js";
156
+ export * from "./utils/getJsonEntityStore.js";
157
+ export * from "./utils/getJsonPathParameters.js";
158
+ export * from "./utils/getJsonSchema.js";
159
+ export * from "./utils/getJsonType.js";
160
+ export * from "./utils/getOperationsRoutes.js";
161
+ export * from "./utils/getOperationsStores.js";
162
+ export * from "./utils/getPropertiesStores.js";
163
+ export * from "./utils/getSpec.js";
164
+ export * from "./utils/getSpecType.js";
165
+ export * from "./utils/isSuccessStatus.js";
166
+ export * from "./utils/mapHeaders.js";
167
+ export * from "./utils/mapOpenSpec.js";
168
+ export * from "./utils/mapOpenSpec2.js";
169
+ export * from "./utils/mapOpenSpec3.js";
170
+ export * from "./utils/mapOpenSpecInfo.js";
171
+ export * from "./utils/mapOperationOptions.js";
172
+ export * from "./utils/matchGroups.js";
173
+ export * from "./utils/mergeSpec.js";
174
+ export * from "./utils/operationIdFormatter.js";
175
+ export * from "./utils/ref.js";
176
+ export * from "./utils/removeHiddenOperation.js";
177
+ export * from "./utils/serializeEnumValues.js";
178
+ export * from "./utils/somethingOf.js";
179
+ export * from "./utils/toJsonMapCollection.js";
180
+ export * from "./utils/toJsonRegex.js";
181
+ export * from "./utils/transformToOS2.js";
182
+ export * from "./utils/withErrorMsg.js";
@@ -0,0 +1,4 @@
1
+ import { JsonHookContext } from "./JsonHookContext.js";
2
+ export interface IgnoreCallback {
3
+ (value: boolean, ctx: JsonHookContext): boolean;
4
+ }
@@ -0,0 +1,17 @@
1
+ declare global {
2
+ namespace TsED {
3
+ interface JsonHookContext {
4
+ }
5
+ }
6
+ }
7
+ export interface JsonHookContext extends TsED.JsonHookContext {
8
+ /**
9
+ * The current instance used by serializer function
10
+ */
11
+ self: any;
12
+ /**
13
+ *
14
+ */
15
+ groups?: string[] | false;
16
+ [key: string]: any;
17
+ }
@@ -0,0 +1,9 @@
1
+ import { OS3Header } from "@tsed/openspec";
2
+ export interface JsonHeader extends OS3Header {
3
+ }
4
+ export interface JsonHeaders {
5
+ [key: string]: number | string | (JsonHeader & {
6
+ type?: string;
7
+ value?: string | number;
8
+ });
9
+ }
@@ -0,0 +1,30 @@
1
+ import { SpecTypes } from "../domain/SpecTypes.js";
2
+ export interface JsonSchemaOptions {
3
+ /**
4
+ * Map properties with the alias name. By default, false
5
+ */
6
+ useAlias?: boolean;
7
+ /**
8
+ * Reference to components Object.
9
+ */
10
+ components?: Record<string, any>;
11
+ /**
12
+ * Define Spec types level
13
+ */
14
+ specType?: SpecTypes;
15
+ /**
16
+ * Define a groups restriction to generate the JsonSchema.
17
+ * Set false to disable groups.
18
+ */
19
+ groups?: string[] | false;
20
+ /**
21
+ * Set the postfix groups name for generated model and ref.
22
+ */
23
+ groupsName?: string;
24
+ /**
25
+ * Generate custom keys when SpecType is JSON.
26
+ */
27
+ customKeys?: boolean;
28
+ inlineEnums?: boolean;
29
+ [key: string]: any;
30
+ }
@@ -0,0 +1,21 @@
1
+ import { SpecTypes } from "../domain/SpecTypes.js";
2
+ /**
3
+ * @ignore
4
+ */
5
+ export interface JsonSchemaMapper {
6
+ (...args: any[]): any;
7
+ }
8
+ /**
9
+ * @ignore
10
+ */
11
+ export declare function registerJsonSchemaMapper(type: string, mapper: JsonSchemaMapper, spec?: SpecTypes): Map<string, JsonSchemaMapper>;
12
+ /**
13
+ * @ignore
14
+ */
15
+ export declare function getJsonSchemaMapper(type: string, options: any): JsonSchemaMapper;
16
+ /**
17
+ * @ignore
18
+ */
19
+ export declare function execMapper(type: string, args: any[], options: any, parent?: any): any;
20
+ export declare function hasMapper(type: string): boolean;
21
+ export declare function oneOfMapper(types: string[], options: any): string;
@@ -0,0 +1,2 @@
1
+ import { JsonSchema } from "../domain/JsonSchema.js";
2
+ export declare const enumsRegistry: Map<any, JsonSchema>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Return a sanitized path
3
+ * @param path
4
+ * @ignore
5
+ */
6
+ export declare function buildPath(path: string): string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @ignore
3
+ */
4
+ export declare function concatParameters(parameters: any[], operation: any): any[];
@@ -0,0 +1 @@
1
+ export declare function concatPath(basePath: string | undefined | RegExp, path: string | undefined | RegExp): any;