@tsed/schema 7.79.3 → 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,53 @@
1
+ /**
2
+ * Add a description to the class, method or property
3
+ *
4
+ * ## Examples
5
+ * ### On class
6
+ *
7
+ * ```typescript
8
+ * @Description("description")
9
+ * class Model {
10
+ *
11
+ * }
12
+ * ```
13
+ *
14
+ * ### On method
15
+ *
16
+ * ```typescript
17
+ * @Controller("/")
18
+ * class ModelCtrl {
19
+ * @Description("description")
20
+ * async method() {}
21
+ * }
22
+ * ```
23
+ *
24
+ * ### On parameter
25
+ *
26
+ * ```typescript
27
+ * @Controller("/")
28
+ * class ModelCtrl {
29
+ * async method(@Description("description") @PathParam("id") id: string) {}
30
+ * }
31
+ * ```
32
+ *
33
+ * ### On property
34
+ *
35
+ * ```typescript
36
+ * class Model {
37
+ * @Description("description")
38
+ * id: string;
39
+ * }
40
+ * ```
41
+ *
42
+ * @param {string} description
43
+ * @decorator
44
+ * @validation
45
+ * @swagger
46
+ * @schema
47
+ * @input
48
+ * @classDecorator
49
+ * @methodDecorator
50
+ * @propertyDecorator
51
+ * @parameterDecorator
52
+ */
53
+ export declare function Description(description: any): (...args: any[]) => any;
@@ -0,0 +1 @@
1
+ export declare function DiscriminatorKey(): PropertyDecorator;
@@ -0,0 +1,101 @@
1
+ import type { JSONSchema6Type } from "json-schema";
2
+ declare function EnumFn(...enumValues: (JSONSchema6Type | any)[]): Function;
3
+ /**
4
+ * The enum keyword is used to restrict a value to a fixed set of values.
5
+ * It must be an array with at least one element, where each element is unique.
6
+ *
7
+ * Elements in the array might be of any value, including null.
8
+ *
9
+ * ::: warning
10
+ * For v6 user, use @@Enum@@ from @tsed/schema instead of @tsed/common.
11
+ * :::
12
+ *
13
+ * ## Example
14
+ * ### With primitive type
15
+ *
16
+ * ```typescript
17
+ * class Model {
18
+ * @Enum("value1", "value2")
19
+ * property: "value1" | "value2";
20
+ * }
21
+ * ```
22
+ *
23
+ * Will produce:
24
+ *
25
+ * ```json
26
+ * {
27
+ * "type": "object",
28
+ * "properties": {
29
+ * "property": {
30
+ * "type": "string",
31
+ * "enum": ["value1", "value2"]
32
+ * }
33
+ * }
34
+ * }
35
+ * ```
36
+ *
37
+ * ### With array type
38
+ *
39
+ * ```typescript
40
+ * class Model {
41
+ * @Enum("value1", "value2")
42
+ * property: ("value1" | "value2")[];
43
+ * }
44
+ * ```
45
+ *
46
+ * Will produce:
47
+ *
48
+ * ```json
49
+ * {
50
+ * "type": "object",
51
+ * "properties": {
52
+ * "property": {
53
+ * "type": "array",
54
+ * "items": {
55
+ * "type": "string",
56
+ * "enum": ["value1", "value2"]
57
+ * }
58
+ * }
59
+ * }
60
+ * }
61
+ * ```
62
+ *
63
+ * ### With Typescript Enum
64
+ *
65
+ * ```typescript
66
+ * enum SomeEnum {
67
+ * ENUM_1 = "enum1",
68
+ * ENUM_2 = "enum2"
69
+ * }
70
+ *
71
+ * class Model {
72
+ * @Enum(SomeEnum)
73
+ * property: SomeEnum;
74
+ * }
75
+ * ```
76
+ *
77
+ * Will produce:
78
+ *
79
+ * ```json
80
+ * {
81
+ * "type": "object",
82
+ * "properties": {
83
+ * "property": {
84
+ * "type": "string",
85
+ * "enum": ["enum1", "enum2"]
86
+ * }
87
+ * }
88
+ * }
89
+ * ```
90
+ *
91
+ * @param {string | number | boolean | {}} enumValue
92
+ * @param enumValues
93
+ * @decorator
94
+ * @validation
95
+ * @swagger
96
+ * @schema
97
+ * @input
98
+ * @ajv-errors
99
+ */
100
+ export declare const Enum: import("../../utils/withErrorMsg.js").ErrorChainedDecorator<typeof EnumFn>;
101
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Add an error message to the property.
3
+ * @decorator
4
+ * @ajv
5
+ */
6
+ export declare function ErrorMsg(obj: Record<string, string>): (...args: any[]) => any;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Add an example metadata on the decorated element.
3
+ *
4
+ * @decorator
5
+ * @swagger
6
+ * @schema
7
+ * @input
8
+ * @methodDecorator
9
+ * @classDecorator
10
+ */
11
+ export declare function Example(...examples: any[]): Function;
@@ -0,0 +1,12 @@
1
+ import { OpenSpecHash, OpenSpecRef, OS3Example } from "@tsed/openspec";
2
+ /**
3
+ * Add a examples metadata on the decorated element.
4
+ *
5
+ * @decorator
6
+ * @swagger
7
+ * @schema
8
+ * @input
9
+ * @methodDecorator
10
+ * @classDecorator
11
+ */
12
+ export declare function Examples(examples: OpenSpecHash<OS3Example | OpenSpecRef>): ParameterDecorator;
@@ -0,0 +1,70 @@
1
+ /**
2
+ * The value of `exclusiveMaximum` MUST be number, representing an exclusive upper limit for a numeric instance.
3
+ *
4
+ * If the instance is a number, then the instance is valid only if it has a value strictly less than (not equal to) `exclusiveMaximum`.
5
+ *
6
+ * ::: warning
7
+ * For v6 user, use @@ExclusiveMaximum@@ from @tsed/schema instead of @tsed/common.
8
+ * :::
9
+ *
10
+ * ## Example
11
+ * ### With primitive type
12
+ *
13
+ * ```typescript
14
+ * class Model {
15
+ * @ExclusiveMaximum(10)
16
+ * property: number;
17
+ * }
18
+ * ```
19
+ *
20
+ * Will produce:
21
+ *
22
+ * ```json
23
+ * {
24
+ * "type": "object",
25
+ * "properties": {
26
+ * "property": {
27
+ * "type": "number",
28
+ * "exclusiveMaximum": 10
29
+ * }
30
+ * }
31
+ * }
32
+ * ```
33
+ *
34
+ * ### With array type
35
+ *
36
+ * ```typescript
37
+ * class Model {
38
+ * @ExclusiveMaximum(10)
39
+ * @CollectionOf(Number)
40
+ * property: number[];
41
+ * }
42
+ * ```
43
+ *
44
+ * Will produce:
45
+ *
46
+ * ```json
47
+ * {
48
+ * "type": "object",
49
+ * "properties": {
50
+ * "property": {
51
+ * "type": "array",
52
+ * "items": {
53
+ * "type": "number",
54
+ * "exclusiveMaximum": 10
55
+ * }
56
+ * }
57
+ * }
58
+ * }
59
+ * ```
60
+ *
61
+ * @param maximum
62
+ * @param {boolean} exclusiveMaximum
63
+ * @decorator
64
+ * @validation
65
+ * @swagger
66
+ * @schema
67
+ * @input
68
+ * @ajv-errors
69
+ */
70
+ export declare const ExclusiveMaximum: import("../../utils/withErrorMsg.js").ErrorChainedDecorator<(maximum: number, exclusiveMaximum?: boolean) => import("../../utils/withErrorMsg.js").ErrorChainedMethods<(maximum: number, exclusive?: boolean) => (...args: any[]) => any>>;
@@ -0,0 +1,70 @@
1
+ /**
2
+ * The value of `exclusiveMinimum` MUST be number, representing an exclusive upper limit for a numeric instance.
3
+ *
4
+ * If the instance is a number, then the instance is valid only if it has a value strictly greater than (not equal to) `exclusiveMinimum`.
5
+ *
6
+ * ::: warning
7
+ * For v6 user, use @@ExclusiveMinimum@@ from @tsed/schema instead of @tsed/common.
8
+ * :::
9
+ *
10
+ * ## Example
11
+ * ### With primitive type
12
+ *
13
+ * ```typescript
14
+ * class Model {
15
+ * @ExclusiveMinimum(10)
16
+ * property: number;
17
+ * }
18
+ * ```
19
+ *
20
+ * Will produce:
21
+ *
22
+ * ```json
23
+ * {
24
+ * "type": "object",
25
+ * "properties": {
26
+ * "property": {
27
+ * "type": "number",
28
+ * "exclusiveMinimum": 10
29
+ * }
30
+ * }
31
+ * }
32
+ * ```
33
+ *
34
+ * ### With array type
35
+ *
36
+ * ```typescript
37
+ * class Model {
38
+ * @ExclusiveMinimum(10)
39
+ * @CollectionOf(Number)
40
+ * property: number[];
41
+ * }
42
+ * ```
43
+ *
44
+ * Will produce:
45
+ *
46
+ * ```json
47
+ * {
48
+ * "type": "object",
49
+ * "properties": {
50
+ * "property": {
51
+ * "type": "array",
52
+ * "items": {
53
+ * "type": "number",
54
+ * "exclusiveMinimum": 10
55
+ * }
56
+ * }
57
+ * }
58
+ * }
59
+ * ```
60
+ *
61
+ * @param minimum
62
+ * @param {boolean} exclusiveMinimum
63
+ * @decorator
64
+ * @validation
65
+ * @swagger
66
+ * @schema
67
+ * @input
68
+ * @ajv-errors
69
+ */
70
+ export declare const ExclusiveMinimum: import("../../utils/withErrorMsg.js").ErrorChainedDecorator<(minimum: number, exclusiveMinimum?: boolean) => import("../../utils/withErrorMsg.js").ErrorChainedMethods<(minimum: number, exclusive?: boolean) => (...args: any[]) => any>>;