@twin.org/tools-models 0.0.3-next.16

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 (144) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +21 -0
  3. package/dist/es/index.js +36 -0
  4. package/dist/es/index.js.map +1 -0
  5. package/dist/es/models/jsonSchema/IJsonSchema.js +4 -0
  6. package/dist/es/models/jsonSchema/IJsonSchema.js.map +1 -0
  7. package/dist/es/models/jsonSchema/jsonSchemaTagNames.js +58 -0
  8. package/dist/es/models/jsonSchema/jsonSchemaTagNames.js.map +1 -0
  9. package/dist/es/models/jsonSchema/jsonSchemaTypeNames.js +4 -0
  10. package/dist/es/models/jsonSchema/jsonSchemaTypeNames.js.map +1 -0
  11. package/dist/es/models/openApi/IOpenApi.js +2 -0
  12. package/dist/es/models/openApi/IOpenApi.js.map +1 -0
  13. package/dist/es/models/openApi/IOpenApiComponents.js +2 -0
  14. package/dist/es/models/openApi/IOpenApiComponents.js.map +1 -0
  15. package/dist/es/models/openApi/IOpenApiContact.js +4 -0
  16. package/dist/es/models/openApi/IOpenApiContact.js.map +1 -0
  17. package/dist/es/models/openApi/IOpenApiExample.js +4 -0
  18. package/dist/es/models/openApi/IOpenApiExample.js.map +1 -0
  19. package/dist/es/models/openApi/IOpenApiExternalDocumentation.js +4 -0
  20. package/dist/es/models/openApi/IOpenApiExternalDocumentation.js.map +1 -0
  21. package/dist/es/models/openApi/IOpenApiHeader.js +2 -0
  22. package/dist/es/models/openApi/IOpenApiHeader.js.map +1 -0
  23. package/dist/es/models/openApi/IOpenApiInfo.js +2 -0
  24. package/dist/es/models/openApi/IOpenApiInfo.js.map +1 -0
  25. package/dist/es/models/openApi/IOpenApiLicense.js +4 -0
  26. package/dist/es/models/openApi/IOpenApiLicense.js.map +1 -0
  27. package/dist/es/models/openApi/IOpenApiMediaType.js +2 -0
  28. package/dist/es/models/openApi/IOpenApiMediaType.js.map +1 -0
  29. package/dist/es/models/openApi/IOpenApiOAuthFlow.js +4 -0
  30. package/dist/es/models/openApi/IOpenApiOAuthFlow.js.map +1 -0
  31. package/dist/es/models/openApi/IOpenApiOAuthFlows.js +2 -0
  32. package/dist/es/models/openApi/IOpenApiOAuthFlows.js.map +1 -0
  33. package/dist/es/models/openApi/IOpenApiParameter.js +2 -0
  34. package/dist/es/models/openApi/IOpenApiParameter.js.map +1 -0
  35. package/dist/es/models/openApi/IOpenApiPathItem.js +2 -0
  36. package/dist/es/models/openApi/IOpenApiPathItem.js.map +1 -0
  37. package/dist/es/models/openApi/IOpenApiPathMethod.js +2 -0
  38. package/dist/es/models/openApi/IOpenApiPathMethod.js.map +1 -0
  39. package/dist/es/models/openApi/IOpenApiReference.js +4 -0
  40. package/dist/es/models/openApi/IOpenApiReference.js.map +1 -0
  41. package/dist/es/models/openApi/IOpenApiRequestBody.js +2 -0
  42. package/dist/es/models/openApi/IOpenApiRequestBody.js.map +1 -0
  43. package/dist/es/models/openApi/IOpenApiResponse.js +2 -0
  44. package/dist/es/models/openApi/IOpenApiResponse.js.map +1 -0
  45. package/dist/es/models/openApi/IOpenApiResponses.js +2 -0
  46. package/dist/es/models/openApi/IOpenApiResponses.js.map +1 -0
  47. package/dist/es/models/openApi/IOpenApiSecurityRequirement.js +4 -0
  48. package/dist/es/models/openApi/IOpenApiSecurityRequirement.js.map +1 -0
  49. package/dist/es/models/openApi/IOpenApiSecurityScheme.js +2 -0
  50. package/dist/es/models/openApi/IOpenApiSecurityScheme.js.map +1 -0
  51. package/dist/es/models/openApi/IOpenApiServer.js +2 -0
  52. package/dist/es/models/openApi/IOpenApiServer.js.map +1 -0
  53. package/dist/es/models/openApi/IOpenApiServerVariable.js +4 -0
  54. package/dist/es/models/openApi/IOpenApiServerVariable.js.map +1 -0
  55. package/dist/es/models/openApi/IOpenApiTag.js +2 -0
  56. package/dist/es/models/openApi/IOpenApiTag.js.map +1 -0
  57. package/dist/es/models/openApi/openApiConstants.js +12 -0
  58. package/dist/es/models/openApi/openApiConstants.js.map +1 -0
  59. package/dist/es/models/packageJson/IPackageJson.js +4 -0
  60. package/dist/es/models/packageJson/IPackageJson.js.map +1 -0
  61. package/dist/es/models/packageJson/IPackageJsonBugs.js +4 -0
  62. package/dist/es/models/packageJson/IPackageJsonBugs.js.map +1 -0
  63. package/dist/es/models/packageJson/IPackageJsonPerson.js +4 -0
  64. package/dist/es/models/packageJson/IPackageJsonPerson.js.map +1 -0
  65. package/dist/es/models/packageJson/IPackageJsonPublishConfig.js +4 -0
  66. package/dist/es/models/packageJson/IPackageJsonPublishConfig.js.map +1 -0
  67. package/dist/es/models/packageJson/IPackageJsonRepository.js +4 -0
  68. package/dist/es/models/packageJson/IPackageJsonRepository.js.map +1 -0
  69. package/dist/es/models/packageJson/IPackageJsonStringMap.js +4 -0
  70. package/dist/es/models/packageJson/IPackageJsonStringMap.js.map +1 -0
  71. package/dist/types/index.d.ts +33 -0
  72. package/dist/types/models/jsonSchema/IJsonSchema.d.ts +372 -0
  73. package/dist/types/models/jsonSchema/jsonSchemaTagNames.d.ts +4 -0
  74. package/dist/types/models/jsonSchema/jsonSchemaTypeNames.d.ts +4 -0
  75. package/dist/types/models/openApi/IOpenApi.d.ts +72 -0
  76. package/dist/types/models/openApi/IOpenApiComponents.d.ts +70 -0
  77. package/dist/types/models/openApi/IOpenApiContact.d.ts +21 -0
  78. package/dist/types/models/openApi/IOpenApiExample.d.ts +30 -0
  79. package/dist/types/models/openApi/IOpenApiExternalDocumentation.d.ts +14 -0
  80. package/dist/types/models/openApi/IOpenApiHeader.d.ts +50 -0
  81. package/dist/types/models/openApi/IOpenApiInfo.d.ts +43 -0
  82. package/dist/types/models/openApi/IOpenApiLicense.d.ts +21 -0
  83. package/dist/types/models/openApi/IOpenApiMediaType.d.ts +41 -0
  84. package/dist/types/models/openApi/IOpenApiOAuthFlow.d.ts +28 -0
  85. package/dist/types/models/openApi/IOpenApiOAuthFlows.d.ts +27 -0
  86. package/dist/types/models/openApi/IOpenApiParameter.d.ts +74 -0
  87. package/dist/types/models/openApi/IOpenApiPathItem.d.ts +72 -0
  88. package/dist/types/models/openApi/IOpenApiPathMethod.d.ts +75 -0
  89. package/dist/types/models/openApi/IOpenApiReference.d.ts +18 -0
  90. package/dist/types/models/openApi/IOpenApiRequestBody.d.ts +22 -0
  91. package/dist/types/models/openApi/IOpenApiResponse.d.ts +35 -0
  92. package/dist/types/models/openApi/IOpenApiResponses.d.ts +18 -0
  93. package/dist/types/models/openApi/IOpenApiSecurityRequirement.d.ts +7 -0
  94. package/dist/types/models/openApi/IOpenApiSecurityScheme.d.ts +33 -0
  95. package/dist/types/models/openApi/IOpenApiServer.d.ts +29 -0
  96. package/dist/types/models/openApi/IOpenApiServerVariable.d.ts +21 -0
  97. package/dist/types/models/openApi/IOpenApiTag.d.ts +31 -0
  98. package/dist/types/models/openApi/openApiConstants.d.ts +9 -0
  99. package/dist/types/models/packageJson/IPackageJson.d.ts +134 -0
  100. package/dist/types/models/packageJson/IPackageJsonBugs.d.ts +7 -0
  101. package/dist/types/models/packageJson/IPackageJsonPerson.d.ts +8 -0
  102. package/dist/types/models/packageJson/IPackageJsonPublishConfig.d.ts +6 -0
  103. package/dist/types/models/packageJson/IPackageJsonRepository.d.ts +8 -0
  104. package/dist/types/models/packageJson/IPackageJsonStringMap.d.ts +6 -0
  105. package/docs/changelog.md +10 -0
  106. package/docs/examples.md +85 -0
  107. package/docs/reference/classes/OpenApiConstants.md +21 -0
  108. package/docs/reference/index.md +48 -0
  109. package/docs/reference/interfaces/IJsonSchema.md +795 -0
  110. package/docs/reference/interfaces/IOpenApi.md +147 -0
  111. package/docs/reference/interfaces/IOpenApiComponents.md +115 -0
  112. package/docs/reference/interfaces/IOpenApiContact.md +43 -0
  113. package/docs/reference/interfaces/IOpenApiExample.md +55 -0
  114. package/docs/reference/interfaces/IOpenApiExternalDocumentation.md +23 -0
  115. package/docs/reference/interfaces/IOpenApiHeader.md +87 -0
  116. package/docs/reference/interfaces/IOpenApiInfo.md +91 -0
  117. package/docs/reference/interfaces/IOpenApiLicense.md +43 -0
  118. package/docs/reference/interfaces/IOpenApiMediaType.md +71 -0
  119. package/docs/reference/interfaces/IOpenApiOAuthFlow.md +51 -0
  120. package/docs/reference/interfaces/IOpenApiOAuthFlows.md +47 -0
  121. package/docs/reference/interfaces/IOpenApiParameter.md +119 -0
  122. package/docs/reference/interfaces/IOpenApiPathItem.md +131 -0
  123. package/docs/reference/interfaces/IOpenApiPathMethod.md +155 -0
  124. package/docs/reference/interfaces/IOpenApiReference.md +31 -0
  125. package/docs/reference/interfaces/IOpenApiRequestBody.md +35 -0
  126. package/docs/reference/interfaces/IOpenApiResponse.md +59 -0
  127. package/docs/reference/interfaces/IOpenApiResponses.md +29 -0
  128. package/docs/reference/interfaces/IOpenApiSecurityRequirement.md +11 -0
  129. package/docs/reference/interfaces/IOpenApiServer.md +59 -0
  130. package/docs/reference/interfaces/IOpenApiServerVariable.md +43 -0
  131. package/docs/reference/interfaces/IOpenApiTag.md +55 -0
  132. package/docs/reference/interfaces/IPackageJson.md +295 -0
  133. package/docs/reference/interfaces/IPackageJsonPublishConfig.md +7 -0
  134. package/docs/reference/interfaces/IPackageJsonStringMap.md +7 -0
  135. package/docs/reference/type-aliases/IOpenApiSecurityScheme.md +9 -0
  136. package/docs/reference/type-aliases/IPackageJsonBugs.md +5 -0
  137. package/docs/reference/type-aliases/IPackageJsonPerson.md +5 -0
  138. package/docs/reference/type-aliases/IPackageJsonRepository.md +5 -0
  139. package/docs/reference/type-aliases/JsonSchemaTypeNames.md +5 -0
  140. package/docs/reference/type-aliases/OpenApiParameterLocation.md +5 -0
  141. package/docs/reference/type-aliases/OpenApiParameterStyle.md +5 -0
  142. package/docs/reference/variables/JsonSchemaTagNames.md +5 -0
  143. package/locales/en.json +1 -0
  144. package/package.json +51 -0
@@ -0,0 +1,795 @@
1
+ # Interface: IJsonSchema
2
+
3
+ JSON schema representation used by the TypeScript conversion utilities.
4
+
5
+ ## See
6
+
7
+ https://json-schema.org/draft/2020-12/json-schema-core
8
+
9
+ ## Indexable
10
+
11
+ > \[`key`: `string`\]: `unknown`
12
+
13
+ Allow additional extension keywords.
14
+
15
+ ### See
16
+
17
+ - https://www.learnjsonschema.com/2020-12/
18
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-4.3.1
19
+
20
+ ## Properties
21
+
22
+ ### $schema? {#schema}
23
+
24
+ > `optional` **$schema?**: `string`
25
+
26
+ Dialect URI for the schema document.
27
+
28
+ #### See
29
+
30
+ - https://www.learnjsonschema.com/2020-12/core/schema/
31
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-8.1.1
32
+
33
+ ***
34
+
35
+ ### $id? {#id}
36
+
37
+ > `optional` **$id?**: `string`
38
+
39
+ Canonical identifier for the schema resource.
40
+
41
+ #### See
42
+
43
+ - https://www.learnjsonschema.com/2020-12/core/id/
44
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-8.2.1
45
+
46
+ ***
47
+
48
+ ### $ref? {#ref}
49
+
50
+ > `optional` **$ref?**: `string`
51
+
52
+ Reference to another schema resource.
53
+
54
+ #### See
55
+
56
+ - https://www.learnjsonschema.com/2020-12/core/ref/
57
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-8.2.3.1
58
+
59
+ ***
60
+
61
+ ### $anchor? {#anchor}
62
+
63
+ > `optional` **$anchor?**: `string`
64
+
65
+ Location-independent identifier fragment.
66
+
67
+ #### See
68
+
69
+ - https://www.learnjsonschema.com/2020-12/core/anchor/
70
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-8.2.2
71
+
72
+ ***
73
+
74
+ ### $dynamicRef? {#dynamicref}
75
+
76
+ > `optional` **$dynamicRef?**: `string`
77
+
78
+ Runtime-resolved dynamic schema reference.
79
+
80
+ #### See
81
+
82
+ - https://www.learnjsonschema.com/2020-12/core/dynamicref/
83
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-8.2.3.2
84
+
85
+ ***
86
+
87
+ ### $dynamicAnchor? {#dynamicanchor}
88
+
89
+ > `optional` **$dynamicAnchor?**: `string`
90
+
91
+ Dynamic extension point anchor.
92
+
93
+ #### See
94
+
95
+ - https://www.learnjsonschema.com/2020-12/core/dynamicanchor/
96
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-8.2.2
97
+
98
+ ***
99
+
100
+ ### $vocabulary? {#vocabulary}
101
+
102
+ > `optional` **$vocabulary?**: `object`
103
+
104
+ Declares vocabularies for a meta-schema dialect.
105
+
106
+ #### Index Signature
107
+
108
+ \[`uri`: `string`\]: `boolean`
109
+
110
+ #### See
111
+
112
+ - https://www.learnjsonschema.com/2020-12/core/vocabulary/
113
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-8.1.2
114
+
115
+ ***
116
+
117
+ ### $comment? {#comment}
118
+
119
+ > `optional` **$comment?**: `string`
120
+
121
+ Maintainer comment for tools.
122
+
123
+ #### See
124
+
125
+ - https://www.learnjsonschema.com/2020-12/core/comment/
126
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-8.3
127
+
128
+ ***
129
+
130
+ ### $defs? {#defs}
131
+
132
+ > `optional` **$defs?**: `object`
133
+
134
+ Reusable inlined schema definitions.
135
+
136
+ #### Index Signature
137
+
138
+ \[`id`: `string`\]: `IJsonSchema`
139
+
140
+ #### See
141
+
142
+ - https://www.learnjsonschema.com/2020-12/core/defs/
143
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-8.2.4
144
+
145
+ ***
146
+
147
+ ### title? {#title}
148
+
149
+ > `optional` **title?**: `string`
150
+
151
+ Human-friendly schema title.
152
+
153
+ #### See
154
+
155
+ - https://www.learnjsonschema.com/2020-12/meta-data/title/
156
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-9.1
157
+
158
+ ***
159
+
160
+ ### description? {#description}
161
+
162
+ > `optional` **description?**: `string`
163
+
164
+ Human-friendly schema description.
165
+
166
+ #### See
167
+
168
+ - https://www.learnjsonschema.com/2020-12/meta-data/description/
169
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-9.1
170
+
171
+ ***
172
+
173
+ ### type? {#type}
174
+
175
+ > `optional` **type?**: `string` \| `string`[]
176
+
177
+ Constrain allowed JSON value types.
178
+
179
+ #### See
180
+
181
+ - https://www.learnjsonschema.com/2020-12/validation/type/
182
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-6.1.1
183
+
184
+ ***
185
+
186
+ ### properties? {#properties}
187
+
188
+ > `optional` **properties?**: `object`
189
+
190
+ Property schemas for object members.
191
+
192
+ #### Index Signature
193
+
194
+ \[`id`: `string`\]: `IJsonSchema`
195
+
196
+ #### See
197
+
198
+ - https://www.learnjsonschema.com/2020-12/applicator/properties/
199
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-10.3.2.1
200
+
201
+ ***
202
+
203
+ ### patternProperties? {#patternproperties}
204
+
205
+ > `optional` **patternProperties?**: `object`
206
+
207
+ Property schemas selected by regex on property names.
208
+
209
+ #### Index Signature
210
+
211
+ \[`pattern`: `string`\]: `IJsonSchema`
212
+
213
+ #### See
214
+
215
+ - https://www.learnjsonschema.com/2020-12/applicator/patternproperties/
216
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-10.3.2.2
217
+
218
+ ***
219
+
220
+ ### required? {#required}
221
+
222
+ > `optional` **required?**: `string`[]
223
+
224
+ Object property names that must be present.
225
+
226
+ #### See
227
+
228
+ - https://www.learnjsonschema.com/2020-12/validation/required/
229
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-6.5.3
230
+
231
+ ***
232
+
233
+ ### dependentSchemas? {#dependentschemas}
234
+
235
+ > `optional` **dependentSchemas?**: `object`
236
+
237
+ Property-level schema dependencies.
238
+
239
+ #### Index Signature
240
+
241
+ \[`property`: `string`\]: `IJsonSchema`
242
+
243
+ #### See
244
+
245
+ - https://www.learnjsonschema.com/2020-12/applicator/dependentschemas/
246
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-10.2.2.4
247
+
248
+ ***
249
+
250
+ ### dependentRequired? {#dependentrequired}
251
+
252
+ > `optional` **dependentRequired?**: `object`
253
+
254
+ Property-level required-key dependencies.
255
+
256
+ #### Index Signature
257
+
258
+ \[`property`: `string`\]: `string`[]
259
+
260
+ #### See
261
+
262
+ - https://www.learnjsonschema.com/2020-12/validation/dependentrequired/
263
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-6.5.4
264
+
265
+ ***
266
+
267
+ ### items? {#items}
268
+
269
+ > `optional` **items?**: `boolean` \| `IJsonSchema`
270
+
271
+ Schema for array items (or boolean form).
272
+
273
+ #### See
274
+
275
+ - https://www.learnjsonschema.com/2020-12/applicator/items/
276
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-10.3.1.2
277
+
278
+ ***
279
+
280
+ ### prefixItems? {#prefixitems}
281
+
282
+ > `optional` **prefixItems?**: `IJsonSchema`[]
283
+
284
+ Tuple-style schemas for leading array positions.
285
+
286
+ #### See
287
+
288
+ - https://www.learnjsonschema.com/2020-12/applicator/prefixitems/
289
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-10.3.1.1
290
+
291
+ ***
292
+
293
+ ### additionalProperties? {#additionalproperties}
294
+
295
+ > `optional` **additionalProperties?**: `boolean` \| `IJsonSchema`
296
+
297
+ Schema for properties not listed in properties/patternProperties.
298
+
299
+ #### See
300
+
301
+ - https://www.learnjsonschema.com/2020-12/applicator/additionalproperties/
302
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-10.3.2.3
303
+
304
+ ***
305
+
306
+ ### anyOf? {#anyof}
307
+
308
+ > `optional` **anyOf?**: `IJsonSchema`[]
309
+
310
+ Union where at least one branch schema must match.
311
+
312
+ #### See
313
+
314
+ - https://www.learnjsonschema.com/2020-12/applicator/anyof/
315
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-10.2.1.2
316
+
317
+ ***
318
+
319
+ ### allOf? {#allof}
320
+
321
+ > `optional` **allOf?**: `IJsonSchema`[]
322
+
323
+ Intersection where all branch schemas must match.
324
+
325
+ #### See
326
+
327
+ - https://www.learnjsonschema.com/2020-12/applicator/allof/
328
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-10.2.1.1
329
+
330
+ ***
331
+
332
+ ### oneOf? {#oneof}
333
+
334
+ > `optional` **oneOf?**: `IJsonSchema`[]
335
+
336
+ Exactly one branch schema must match.
337
+
338
+ #### See
339
+
340
+ - https://www.learnjsonschema.com/2020-12/applicator/oneof/
341
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-10.2.1.3
342
+
343
+ ***
344
+
345
+ ### not? {#not}
346
+
347
+ > `optional` **not?**: `IJsonSchema`
348
+
349
+ Negated schema condition.
350
+
351
+ #### See
352
+
353
+ - https://www.learnjsonschema.com/2020-12/applicator/not/
354
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-10.2.1.4
355
+
356
+ ***
357
+
358
+ ### if? {#if}
359
+
360
+ > `optional` **if?**: `IJsonSchema`
361
+
362
+ Condition schema for conditional application.
363
+
364
+ #### See
365
+
366
+ - https://www.learnjsonschema.com/2020-12/applicator/if/
367
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-10.2.2.1
368
+
369
+ ***
370
+
371
+ ### then? {#then}
372
+
373
+ > `optional` **then?**: `IJsonSchema`
374
+
375
+ Schema applied when if matches.
376
+
377
+ #### See
378
+
379
+ - https://www.learnjsonschema.com/2020-12/applicator/then/
380
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-10.2.2.2
381
+
382
+ ***
383
+
384
+ ### else? {#else}
385
+
386
+ > `optional` **else?**: `IJsonSchema`
387
+
388
+ Schema applied when if does not match.
389
+
390
+ #### See
391
+
392
+ - https://www.learnjsonschema.com/2020-12/applicator/else/
393
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-10.2.2.3
394
+
395
+ ***
396
+
397
+ ### contains? {#contains}
398
+
399
+ > `optional` **contains?**: `IJsonSchema`
400
+
401
+ Array must contain at least one matching item.
402
+
403
+ #### See
404
+
405
+ - https://www.learnjsonschema.com/2020-12/applicator/contains/
406
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-10.3.1.3
407
+
408
+ ***
409
+
410
+ ### propertyNames? {#propertynames}
411
+
412
+ > `optional` **propertyNames?**: `IJsonSchema`
413
+
414
+ Schema for validating object property names.
415
+
416
+ #### See
417
+
418
+ - https://www.learnjsonschema.com/2020-12/applicator/propertynames/
419
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-10.3.2.4
420
+
421
+ ***
422
+
423
+ ### const? {#const}
424
+
425
+ > `optional` **const?**: `unknown`
426
+
427
+ Single fixed value constraint.
428
+
429
+ #### See
430
+
431
+ - https://www.learnjsonschema.com/2020-12/validation/const/
432
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-6.1.3
433
+
434
+ ***
435
+
436
+ ### enum? {#enum}
437
+
438
+ > `optional` **enum?**: `unknown`[]
439
+
440
+ Enumerated set of allowed values.
441
+
442
+ #### See
443
+
444
+ - https://www.learnjsonschema.com/2020-12/validation/enum/
445
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-6.1.2
446
+
447
+ ***
448
+
449
+ ### examples? {#examples}
450
+
451
+ > `optional` **examples?**: `unknown`[]
452
+
453
+ Example instances for documentation tooling.
454
+
455
+ #### See
456
+
457
+ - https://www.learnjsonschema.com/2020-12/meta-data/examples/
458
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-9.5
459
+
460
+ ***
461
+
462
+ ### default? {#default}
463
+
464
+ > `optional` **default?**: `unknown`
465
+
466
+ Suggested default instance value.
467
+
468
+ #### See
469
+
470
+ - https://www.learnjsonschema.com/2020-12/meta-data/default/
471
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-9.2
472
+
473
+ ***
474
+
475
+ ### format? {#format}
476
+
477
+ > `optional` **format?**: `string`
478
+
479
+ Semantic format annotation.
480
+
481
+ #### See
482
+
483
+ - https://www.learnjsonschema.com/2020-12/format-annotation/format/
484
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-7.1
485
+
486
+ ***
487
+
488
+ ### pattern? {#pattern}
489
+
490
+ > `optional` **pattern?**: `string`
491
+
492
+ Regular expression that strings must match.
493
+
494
+ #### See
495
+
496
+ - https://www.learnjsonschema.com/2020-12/validation/pattern/
497
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-6.3.3
498
+
499
+ ***
500
+
501
+ ### contentEncoding? {#contentencoding}
502
+
503
+ > `optional` **contentEncoding?**: `string`
504
+
505
+ Content encoding annotation for string instances.
506
+
507
+ #### See
508
+
509
+ - https://www.learnjsonschema.com/2020-12/content/contentencoding/
510
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-8.3
511
+
512
+ ***
513
+
514
+ ### contentMediaType? {#contentmediatype}
515
+
516
+ > `optional` **contentMediaType?**: `string`
517
+
518
+ Media type annotation for string content.
519
+
520
+ #### See
521
+
522
+ - https://www.learnjsonschema.com/2020-12/content/contentmediatype/
523
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-8.4
524
+
525
+ ***
526
+
527
+ ### contentSchema? {#contentschema}
528
+
529
+ > `optional` **contentSchema?**: `IJsonSchema`
530
+
531
+ Schema for the decoded content payload.
532
+
533
+ #### See
534
+
535
+ - https://www.learnjsonschema.com/2020-12/content/contentschema/
536
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-8.5
537
+
538
+ ***
539
+
540
+ ### readOnly? {#readonly}
541
+
542
+ > `optional` **readOnly?**: `boolean`
543
+
544
+ Annotation indicating read-only semantics.
545
+
546
+ #### See
547
+
548
+ - https://www.learnjsonschema.com/2020-12/meta-data/readonly/
549
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-9.4
550
+
551
+ ***
552
+
553
+ ### writeOnly? {#writeonly}
554
+
555
+ > `optional` **writeOnly?**: `boolean`
556
+
557
+ Annotation indicating write-only semantics.
558
+
559
+ #### See
560
+
561
+ - https://www.learnjsonschema.com/2020-12/meta-data/writeonly/
562
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-9.4
563
+
564
+ ***
565
+
566
+ ### deprecated? {#deprecated}
567
+
568
+ > `optional` **deprecated?**: `boolean`
569
+
570
+ Annotation indicating deprecation.
571
+
572
+ #### See
573
+
574
+ - https://www.learnjsonschema.com/2020-12/meta-data/deprecated/
575
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-9.3
576
+
577
+ ***
578
+
579
+ ### discriminator? {#discriminator}
580
+
581
+ > `optional` **discriminator?**: `object`
582
+
583
+ Non-standard extension used by some tooling ecosystems.
584
+
585
+ #### propertyName
586
+
587
+ > **propertyName**: `string`
588
+
589
+ ***
590
+
591
+ ### minLength? {#minlength}
592
+
593
+ > `optional` **minLength?**: `number`
594
+
595
+ Minimum length for strings.
596
+
597
+ #### See
598
+
599
+ - https://www.learnjsonschema.com/2020-12/validation/minlength/
600
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-6.3.2
601
+
602
+ ***
603
+
604
+ ### maxLength? {#maxlength}
605
+
606
+ > `optional` **maxLength?**: `number`
607
+
608
+ Maximum length for strings.
609
+
610
+ #### See
611
+
612
+ - https://www.learnjsonschema.com/2020-12/validation/maxlength/
613
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-6.3.1
614
+
615
+ ***
616
+
617
+ ### minimum? {#minimum}
618
+
619
+ > `optional` **minimum?**: `number`
620
+
621
+ Inclusive lower numeric bound.
622
+
623
+ #### See
624
+
625
+ - https://www.learnjsonschema.com/2020-12/validation/minimum/
626
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-6.2.4
627
+
628
+ ***
629
+
630
+ ### maximum? {#maximum}
631
+
632
+ > `optional` **maximum?**: `number`
633
+
634
+ Inclusive upper numeric bound.
635
+
636
+ #### See
637
+
638
+ - https://www.learnjsonschema.com/2020-12/validation/maximum/
639
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-6.2.2
640
+
641
+ ***
642
+
643
+ ### exclusiveMinimum? {#exclusiveminimum}
644
+
645
+ > `optional` **exclusiveMinimum?**: `number`
646
+
647
+ Exclusive lower numeric bound.
648
+
649
+ #### See
650
+
651
+ - https://www.learnjsonschema.com/2020-12/validation/exclusiveminimum/
652
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-6.2.5
653
+
654
+ ***
655
+
656
+ ### exclusiveMaximum? {#exclusivemaximum}
657
+
658
+ > `optional` **exclusiveMaximum?**: `number`
659
+
660
+ Exclusive upper numeric bound.
661
+
662
+ #### See
663
+
664
+ - https://www.learnjsonschema.com/2020-12/validation/exclusivemaximum/
665
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-6.2.3
666
+
667
+ ***
668
+
669
+ ### multipleOf? {#multipleof}
670
+
671
+ > `optional` **multipleOf?**: `number`
672
+
673
+ Numeric divisor constraint.
674
+
675
+ #### See
676
+
677
+ - https://www.learnjsonschema.com/2020-12/validation/multipleof/
678
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-6.2.1
679
+
680
+ ***
681
+
682
+ ### minItems? {#minitems}
683
+
684
+ > `optional` **minItems?**: `number`
685
+
686
+ Minimum array length.
687
+
688
+ #### See
689
+
690
+ - https://www.learnjsonschema.com/2020-12/validation/minitems/
691
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-6.4.2
692
+
693
+ ***
694
+
695
+ ### maxItems? {#maxitems}
696
+
697
+ > `optional` **maxItems?**: `number`
698
+
699
+ Maximum array length.
700
+
701
+ #### See
702
+
703
+ - https://www.learnjsonschema.com/2020-12/validation/maxitems/
704
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-6.4.1
705
+
706
+ ***
707
+
708
+ ### uniqueItems? {#uniqueitems}
709
+
710
+ > `optional` **uniqueItems?**: `boolean`
711
+
712
+ Require array elements to be unique.
713
+
714
+ #### See
715
+
716
+ - https://www.learnjsonschema.com/2020-12/validation/uniqueitems/
717
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-6.4.3
718
+
719
+ ***
720
+
721
+ ### minProperties? {#minproperties}
722
+
723
+ > `optional` **minProperties?**: `number`
724
+
725
+ Minimum number of object properties.
726
+
727
+ #### See
728
+
729
+ - https://www.learnjsonschema.com/2020-12/validation/minproperties/
730
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-6.5.2
731
+
732
+ ***
733
+
734
+ ### maxProperties? {#maxproperties}
735
+
736
+ > `optional` **maxProperties?**: `number`
737
+
738
+ Maximum number of object properties.
739
+
740
+ #### See
741
+
742
+ - https://www.learnjsonschema.com/2020-12/validation/maxproperties/
743
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-6.5.1
744
+
745
+ ***
746
+
747
+ ### minContains? {#mincontains}
748
+
749
+ > `optional` **minContains?**: `number`
750
+
751
+ Minimum number of contains matches.
752
+
753
+ #### See
754
+
755
+ - https://www.learnjsonschema.com/2020-12/validation/mincontains/
756
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-6.4.5
757
+
758
+ ***
759
+
760
+ ### maxContains? {#maxcontains}
761
+
762
+ > `optional` **maxContains?**: `number`
763
+
764
+ Maximum number of contains matches.
765
+
766
+ #### See
767
+
768
+ - https://www.learnjsonschema.com/2020-12/validation/maxcontains/
769
+ - https://json-schema.org/draft/2020-12/json-schema-validation#section-6.4.4
770
+
771
+ ***
772
+
773
+ ### unevaluatedItems? {#unevaluateditems}
774
+
775
+ > `optional` **unevaluatedItems?**: `boolean` \| `IJsonSchema`
776
+
777
+ Schema applied to array items not yet evaluated by adjacent applicators.
778
+
779
+ #### See
780
+
781
+ - https://www.learnjsonschema.com/2020-12/unevaluated/unevaluateditems/
782
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-11.2
783
+
784
+ ***
785
+
786
+ ### unevaluatedProperties? {#unevaluatedproperties}
787
+
788
+ > `optional` **unevaluatedProperties?**: `boolean` \| `IJsonSchema`
789
+
790
+ Schema applied to object properties not yet evaluated by adjacent applicators.
791
+
792
+ #### See
793
+
794
+ - https://www.learnjsonschema.com/2020-12/unevaluated/unevaluatedproperties/
795
+ - https://json-schema.org/draft/2020-12/json-schema-core#section-11.3