@propulsionworks/cfn-resource-schemas 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/types.d.ts +48 -47
- package/out/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/schemas.ndjson.gz +0 -0
- package/src/types.ts +126 -140
package/out/types.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
export type
|
|
2
|
-
[key: string]: JsonValue;
|
|
3
|
-
};
|
|
4
|
-
export type JsonSchemaDefinition = JsonSchema | boolean;
|
|
1
|
+
export type JsonSchemaObject = Exclude<JsonSchema, boolean>;
|
|
5
2
|
export type ResourceTypeSchemaWithMeta = {
|
|
6
3
|
$id: string;
|
|
7
4
|
$integrity: string;
|
|
@@ -11,33 +8,32 @@ export type JsonSchema = {
|
|
|
11
8
|
$id?: string | undefined;
|
|
12
9
|
$ref?: string | undefined;
|
|
13
10
|
$schema?: string | undefined;
|
|
14
|
-
additionalItems?:
|
|
15
|
-
additionalProperties?:
|
|
16
|
-
allOf?:
|
|
17
|
-
anyOf?:
|
|
18
|
-
const?:
|
|
19
|
-
contains?:
|
|
11
|
+
additionalItems?: JsonSchema | undefined;
|
|
12
|
+
additionalProperties?: JsonSchema | undefined;
|
|
13
|
+
allOf?: JsonSchema[] | undefined;
|
|
14
|
+
anyOf?: JsonSchema[] | undefined;
|
|
15
|
+
const?: unknown;
|
|
16
|
+
contains?: JsonSchema | undefined;
|
|
20
17
|
contentEncoding?: string | undefined;
|
|
21
18
|
contentMediaType?: string | undefined;
|
|
22
|
-
default?:
|
|
19
|
+
default?: unknown;
|
|
23
20
|
/**
|
|
24
21
|
* @default {}
|
|
25
22
|
*/
|
|
26
|
-
definitions?: Record<string,
|
|
27
|
-
dependencies?: Record<string,
|
|
23
|
+
definitions?: Record<string, JsonSchema> | undefined;
|
|
24
|
+
dependencies?: Record<string, JsonSchema | string[]> | undefined;
|
|
28
25
|
description?: string | undefined;
|
|
29
|
-
else?:
|
|
30
|
-
enum?:
|
|
31
|
-
examples?:
|
|
26
|
+
else?: JsonSchema | undefined;
|
|
27
|
+
enum?: unknown[] | undefined;
|
|
28
|
+
examples?: unknown[] | undefined;
|
|
32
29
|
exclusiveMaximum?: number | undefined;
|
|
33
30
|
exclusiveMinimum?: number | undefined;
|
|
34
31
|
format?: string | undefined;
|
|
35
|
-
if?:
|
|
32
|
+
if?: JsonSchema | undefined;
|
|
36
33
|
/**
|
|
37
34
|
* @default true
|
|
38
35
|
*/
|
|
39
|
-
items?:
|
|
40
|
-
maximum?: number | undefined;
|
|
36
|
+
items?: JsonSchema | JsonSchema[] | undefined;
|
|
41
37
|
/**
|
|
42
38
|
* @min 0
|
|
43
39
|
*/
|
|
@@ -50,7 +46,7 @@ export type JsonSchema = {
|
|
|
50
46
|
* @min 0
|
|
51
47
|
*/
|
|
52
48
|
maxProperties?: number | undefined;
|
|
53
|
-
|
|
49
|
+
maximum?: number | undefined;
|
|
54
50
|
/**
|
|
55
51
|
* @min 0
|
|
56
52
|
* @default 0
|
|
@@ -66,19 +62,20 @@ export type JsonSchema = {
|
|
|
66
62
|
* @default 0
|
|
67
63
|
*/
|
|
68
64
|
minProperties?: number | undefined;
|
|
65
|
+
minimum?: number | undefined;
|
|
69
66
|
multipleOf?: number | undefined;
|
|
70
|
-
not?:
|
|
71
|
-
oneOf?:
|
|
67
|
+
not?: JsonSchema | undefined;
|
|
68
|
+
oneOf?: JsonSchema[] | undefined;
|
|
72
69
|
pattern?: string | undefined;
|
|
73
70
|
/**
|
|
74
71
|
* @default {}
|
|
75
72
|
*/
|
|
76
|
-
patternProperties?: Record<string,
|
|
73
|
+
patternProperties?: Record<string, JsonSchema> | undefined;
|
|
77
74
|
/**
|
|
78
75
|
* @default {}
|
|
79
76
|
*/
|
|
80
|
-
properties?: Record<string,
|
|
81
|
-
propertyNames?:
|
|
77
|
+
properties?: Record<string, JsonSchema> | undefined;
|
|
78
|
+
propertyNames?: JsonSchema | undefined;
|
|
82
79
|
/**
|
|
83
80
|
* @default false
|
|
84
81
|
*/
|
|
@@ -87,9 +84,9 @@ export type JsonSchema = {
|
|
|
87
84
|
* @default []
|
|
88
85
|
*/
|
|
89
86
|
required?: string[] | undefined;
|
|
90
|
-
then?:
|
|
87
|
+
then?: JsonSchema | undefined;
|
|
91
88
|
title?: string | undefined;
|
|
92
|
-
type?:
|
|
89
|
+
type?: JsonSchemaType | JsonSchemaType[] | undefined;
|
|
93
90
|
/**
|
|
94
91
|
* @default false
|
|
95
92
|
*/
|
|
@@ -98,7 +95,8 @@ export type JsonSchema = {
|
|
|
98
95
|
* @default false
|
|
99
96
|
*/
|
|
100
97
|
writeOnly?: boolean | undefined;
|
|
101
|
-
};
|
|
98
|
+
} | boolean;
|
|
99
|
+
export type JsonSchemaType = "array" | "boolean" | "integer" | "null" | "number" | "object" | "string";
|
|
102
100
|
/**
|
|
103
101
|
* This schema validates a CloudFormation resource provider definition.
|
|
104
102
|
*/
|
|
@@ -161,11 +159,7 @@ export type ResourceTypeSchema = {
|
|
|
161
159
|
* Reserved for CloudFormation use. A namespace to inline remote schemas.
|
|
162
160
|
*/
|
|
163
161
|
remote?: Record<string, RemoteSchema> | undefined;
|
|
164
|
-
|
|
165
|
-
* The valid replacement strategies are [create_then_delete] and [delete_then_create]. All other inputs are invalid.
|
|
166
|
-
* @default create_then_delete
|
|
167
|
-
*/
|
|
168
|
-
replacementStrategy?: "create_then_delete" | "delete_then_create" | undefined;
|
|
162
|
+
replacementStrategy?: ReplacementStrategy | undefined;
|
|
169
163
|
/**
|
|
170
164
|
* @default []
|
|
171
165
|
*/
|
|
@@ -217,11 +211,6 @@ export type ResourceTagging = {
|
|
|
217
211
|
*/
|
|
218
212
|
cloudFormationSystemTags?: boolean | undefined;
|
|
219
213
|
permissions?: string[] | undefined;
|
|
220
|
-
/**
|
|
221
|
-
* A boolean flag indicating whether this resource type supports tagging.
|
|
222
|
-
* @default true
|
|
223
|
-
*/
|
|
224
|
-
taggable: boolean;
|
|
225
214
|
/**
|
|
226
215
|
* A boolean flag indicating whether this resource type supports tagging resources upon creation.
|
|
227
216
|
* @default true
|
|
@@ -237,6 +226,11 @@ export type ResourceTagging = {
|
|
|
237
226
|
* @default true
|
|
238
227
|
*/
|
|
239
228
|
tagUpdatable?: boolean | undefined;
|
|
229
|
+
/**
|
|
230
|
+
* A boolean flag indicating whether this resource type supports tagging.
|
|
231
|
+
* @default true
|
|
232
|
+
*/
|
|
233
|
+
taggable: boolean;
|
|
240
234
|
};
|
|
241
235
|
/**
|
|
242
236
|
* Reserved for CloudFormation use. A inlined remote schema.
|
|
@@ -257,13 +251,16 @@ export type PropertySchema = {
|
|
|
257
251
|
* @default Standard
|
|
258
252
|
*/
|
|
259
253
|
arrayType?: "Standard" | "AttributeList" | undefined;
|
|
260
|
-
const?:
|
|
261
|
-
|
|
262
|
-
|
|
254
|
+
const?: unknown;
|
|
255
|
+
/**
|
|
256
|
+
* @default true
|
|
257
|
+
*/
|
|
258
|
+
contains?: JsonSchema | undefined;
|
|
259
|
+
default?: unknown;
|
|
263
260
|
dependencies?: Record<string, PropertySchema | string[]> | undefined;
|
|
264
261
|
description?: string | undefined;
|
|
265
|
-
enum?:
|
|
266
|
-
examples?:
|
|
262
|
+
enum?: unknown[] | undefined;
|
|
263
|
+
examples?: unknown[] | undefined;
|
|
267
264
|
exclusiveMaximum?: number | undefined;
|
|
268
265
|
exclusiveMinimum?: number | undefined;
|
|
269
266
|
format?: string | undefined;
|
|
@@ -276,7 +273,6 @@ export type PropertySchema = {
|
|
|
276
273
|
* @default {}
|
|
277
274
|
*/
|
|
278
275
|
items?: PropertySchema | undefined;
|
|
279
|
-
maximum?: number | undefined;
|
|
280
276
|
/**
|
|
281
277
|
* @min 0
|
|
282
278
|
*/
|
|
@@ -289,7 +285,7 @@ export type PropertySchema = {
|
|
|
289
285
|
* @min 0
|
|
290
286
|
*/
|
|
291
287
|
maxProperties?: number | undefined;
|
|
292
|
-
|
|
288
|
+
maximum?: number | undefined;
|
|
293
289
|
/**
|
|
294
290
|
* @min 0
|
|
295
291
|
* @default 0
|
|
@@ -305,10 +301,11 @@ export type PropertySchema = {
|
|
|
305
301
|
* @default 0
|
|
306
302
|
*/
|
|
307
303
|
minProperties?: number | undefined;
|
|
304
|
+
minimum?: number | undefined;
|
|
308
305
|
multipleOf?: number | undefined;
|
|
309
306
|
oneOf?: PropertySchema[] | undefined;
|
|
310
307
|
pattern?: string | undefined;
|
|
311
|
-
patternProperties?: Record<string,
|
|
308
|
+
patternProperties?: Record<string, unknown> | undefined;
|
|
312
309
|
properties?: Record<string, PropertySchema> | undefined;
|
|
313
310
|
relationshipRef?: RelationshipRef | undefined;
|
|
314
311
|
/**
|
|
@@ -316,7 +313,7 @@ export type PropertySchema = {
|
|
|
316
313
|
*/
|
|
317
314
|
required?: string[] | undefined;
|
|
318
315
|
title?: string | undefined;
|
|
319
|
-
type?:
|
|
316
|
+
type?: JsonSchemaType | JsonSchemaType[] | undefined;
|
|
320
317
|
/**
|
|
321
318
|
* @default false
|
|
322
319
|
*/
|
|
@@ -360,6 +357,10 @@ export type TypeConfiguration = {
|
|
|
360
357
|
*/
|
|
361
358
|
required?: string[] | undefined;
|
|
362
359
|
};
|
|
360
|
+
/**
|
|
361
|
+
* The valid replacement strategies are [create_then_delete] and [delete_then_create]. All other inputs are invalid.
|
|
362
|
+
*/
|
|
363
|
+
export type ReplacementStrategy = "create_then_delete" | "delete_then_create";
|
|
363
364
|
export type ResourceLink = {
|
|
364
365
|
$comment?: string | undefined;
|
|
365
366
|
mappings: Record<string, string>;
|
package/out/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,OAA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
| boolean
|
|
3
|
-
| null
|
|
4
|
-
| number
|
|
5
|
-
| string
|
|
6
|
-
| JsonValue[]
|
|
7
|
-
| { [key: string]: JsonValue };
|
|
8
|
-
|
|
9
|
-
export type JsonSchemaDefinition = JsonSchema | boolean;
|
|
1
|
+
export type JsonSchemaObject = Exclude<JsonSchema, boolean>;
|
|
10
2
|
|
|
11
3
|
export type ResourceTypeSchemaWithMeta = {
|
|
12
4
|
$id: string;
|
|
@@ -14,118 +6,109 @@ export type ResourceTypeSchemaWithMeta = {
|
|
|
14
6
|
} & ResourceTypeSchema;
|
|
15
7
|
|
|
16
8
|
/// GENERATED CODE BELOW ///
|
|
17
|
-
export type JsonSchema =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* @default false
|
|
122
|
-
*/
|
|
123
|
-
uniqueItems?: boolean | undefined;
|
|
124
|
-
/**
|
|
125
|
-
* @default false
|
|
126
|
-
*/
|
|
127
|
-
writeOnly?: boolean | undefined;
|
|
128
|
-
};
|
|
9
|
+
export type JsonSchema =
|
|
10
|
+
| {
|
|
11
|
+
$comment?: string | undefined;
|
|
12
|
+
$id?: string | undefined;
|
|
13
|
+
$ref?: string | undefined;
|
|
14
|
+
$schema?: string | undefined;
|
|
15
|
+
additionalItems?: JsonSchema | undefined;
|
|
16
|
+
additionalProperties?: JsonSchema | undefined;
|
|
17
|
+
allOf?: JsonSchema[] | undefined;
|
|
18
|
+
anyOf?: JsonSchema[] | undefined;
|
|
19
|
+
const?: unknown;
|
|
20
|
+
contains?: JsonSchema | undefined;
|
|
21
|
+
contentEncoding?: string | undefined;
|
|
22
|
+
contentMediaType?: string | undefined;
|
|
23
|
+
default?: unknown;
|
|
24
|
+
/**
|
|
25
|
+
* @default {}
|
|
26
|
+
*/
|
|
27
|
+
definitions?: Record<string, JsonSchema> | undefined;
|
|
28
|
+
dependencies?: Record<string, JsonSchema | string[]> | undefined;
|
|
29
|
+
description?: string | undefined;
|
|
30
|
+
else?: JsonSchema | undefined;
|
|
31
|
+
enum?: unknown[] | undefined;
|
|
32
|
+
examples?: unknown[] | undefined;
|
|
33
|
+
exclusiveMaximum?: number | undefined;
|
|
34
|
+
exclusiveMinimum?: number | undefined;
|
|
35
|
+
format?: string | undefined;
|
|
36
|
+
if?: JsonSchema | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* @default true
|
|
39
|
+
*/
|
|
40
|
+
items?: JsonSchema | JsonSchema[] | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* @min 0
|
|
43
|
+
*/
|
|
44
|
+
maxItems?: number | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* @min 0
|
|
47
|
+
*/
|
|
48
|
+
maxLength?: number | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* @min 0
|
|
51
|
+
*/
|
|
52
|
+
maxProperties?: number | undefined;
|
|
53
|
+
maximum?: number | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* @min 0
|
|
56
|
+
* @default 0
|
|
57
|
+
*/
|
|
58
|
+
minItems?: number | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* @min 0
|
|
61
|
+
* @default 0
|
|
62
|
+
*/
|
|
63
|
+
minLength?: number | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* @min 0
|
|
66
|
+
* @default 0
|
|
67
|
+
*/
|
|
68
|
+
minProperties?: number | undefined;
|
|
69
|
+
minimum?: number | undefined;
|
|
70
|
+
multipleOf?: number | undefined;
|
|
71
|
+
not?: JsonSchema | undefined;
|
|
72
|
+
oneOf?: JsonSchema[] | undefined;
|
|
73
|
+
pattern?: string | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* @default {}
|
|
76
|
+
*/
|
|
77
|
+
patternProperties?: Record<string, JsonSchema> | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* @default {}
|
|
80
|
+
*/
|
|
81
|
+
properties?: Record<string, JsonSchema> | undefined;
|
|
82
|
+
propertyNames?: JsonSchema | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* @default false
|
|
85
|
+
*/
|
|
86
|
+
readOnly?: boolean | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* @default []
|
|
89
|
+
*/
|
|
90
|
+
required?: string[] | undefined;
|
|
91
|
+
then?: JsonSchema | undefined;
|
|
92
|
+
title?: string | undefined;
|
|
93
|
+
type?: JsonSchemaType | JsonSchemaType[] | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* @default false
|
|
96
|
+
*/
|
|
97
|
+
uniqueItems?: boolean | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* @default false
|
|
100
|
+
*/
|
|
101
|
+
writeOnly?: boolean | undefined;
|
|
102
|
+
}
|
|
103
|
+
| boolean;
|
|
104
|
+
export type JsonSchemaType =
|
|
105
|
+
| "array"
|
|
106
|
+
| "boolean"
|
|
107
|
+
| "integer"
|
|
108
|
+
| "null"
|
|
109
|
+
| "number"
|
|
110
|
+
| "object"
|
|
111
|
+
| "string";
|
|
129
112
|
/**
|
|
130
113
|
* This schema validates a CloudFormation resource provider definition.
|
|
131
114
|
*/
|
|
@@ -188,11 +171,7 @@ export type ResourceTypeSchema = {
|
|
|
188
171
|
* Reserved for CloudFormation use. A namespace to inline remote schemas.
|
|
189
172
|
*/
|
|
190
173
|
remote?: Record<string, RemoteSchema> | undefined;
|
|
191
|
-
|
|
192
|
-
* The valid replacement strategies are [create_then_delete] and [delete_then_create]. All other inputs are invalid.
|
|
193
|
-
* @default create_then_delete
|
|
194
|
-
*/
|
|
195
|
-
replacementStrategy?: "create_then_delete" | "delete_then_create" | undefined;
|
|
174
|
+
replacementStrategy?: ReplacementStrategy | undefined;
|
|
196
175
|
/**
|
|
197
176
|
* @default []
|
|
198
177
|
*/
|
|
@@ -244,11 +223,6 @@ export type ResourceTagging = {
|
|
|
244
223
|
*/
|
|
245
224
|
cloudFormationSystemTags?: boolean | undefined;
|
|
246
225
|
permissions?: string[] | undefined;
|
|
247
|
-
/**
|
|
248
|
-
* A boolean flag indicating whether this resource type supports tagging.
|
|
249
|
-
* @default true
|
|
250
|
-
*/
|
|
251
|
-
taggable: boolean;
|
|
252
226
|
/**
|
|
253
227
|
* A boolean flag indicating whether this resource type supports tagging resources upon creation.
|
|
254
228
|
* @default true
|
|
@@ -264,6 +238,11 @@ export type ResourceTagging = {
|
|
|
264
238
|
* @default true
|
|
265
239
|
*/
|
|
266
240
|
tagUpdatable?: boolean | undefined;
|
|
241
|
+
/**
|
|
242
|
+
* A boolean flag indicating whether this resource type supports tagging.
|
|
243
|
+
* @default true
|
|
244
|
+
*/
|
|
245
|
+
taggable: boolean;
|
|
267
246
|
};
|
|
268
247
|
/**
|
|
269
248
|
* Reserved for CloudFormation use. A inlined remote schema.
|
|
@@ -284,13 +263,16 @@ export type PropertySchema = {
|
|
|
284
263
|
* @default Standard
|
|
285
264
|
*/
|
|
286
265
|
arrayType?: "Standard" | "AttributeList" | undefined;
|
|
287
|
-
const?:
|
|
288
|
-
|
|
289
|
-
|
|
266
|
+
const?: unknown;
|
|
267
|
+
/**
|
|
268
|
+
* @default true
|
|
269
|
+
*/
|
|
270
|
+
contains?: JsonSchema | undefined;
|
|
271
|
+
default?: unknown;
|
|
290
272
|
dependencies?: Record<string, PropertySchema | string[]> | undefined;
|
|
291
273
|
description?: string | undefined;
|
|
292
|
-
enum?:
|
|
293
|
-
examples?:
|
|
274
|
+
enum?: unknown[] | undefined;
|
|
275
|
+
examples?: unknown[] | undefined;
|
|
294
276
|
exclusiveMaximum?: number | undefined;
|
|
295
277
|
exclusiveMinimum?: number | undefined;
|
|
296
278
|
format?: string | undefined;
|
|
@@ -303,7 +285,6 @@ export type PropertySchema = {
|
|
|
303
285
|
* @default {}
|
|
304
286
|
*/
|
|
305
287
|
items?: PropertySchema | undefined;
|
|
306
|
-
maximum?: number | undefined;
|
|
307
288
|
/**
|
|
308
289
|
* @min 0
|
|
309
290
|
*/
|
|
@@ -316,7 +297,7 @@ export type PropertySchema = {
|
|
|
316
297
|
* @min 0
|
|
317
298
|
*/
|
|
318
299
|
maxProperties?: number | undefined;
|
|
319
|
-
|
|
300
|
+
maximum?: number | undefined;
|
|
320
301
|
/**
|
|
321
302
|
* @min 0
|
|
322
303
|
* @default 0
|
|
@@ -332,10 +313,11 @@ export type PropertySchema = {
|
|
|
332
313
|
* @default 0
|
|
333
314
|
*/
|
|
334
315
|
minProperties?: number | undefined;
|
|
316
|
+
minimum?: number | undefined;
|
|
335
317
|
multipleOf?: number | undefined;
|
|
336
318
|
oneOf?: PropertySchema[] | undefined;
|
|
337
319
|
pattern?: string | undefined;
|
|
338
|
-
patternProperties?: Record<string,
|
|
320
|
+
patternProperties?: Record<string, unknown> | undefined;
|
|
339
321
|
properties?: Record<string, PropertySchema> | undefined;
|
|
340
322
|
relationshipRef?: RelationshipRef | undefined;
|
|
341
323
|
/**
|
|
@@ -343,7 +325,7 @@ export type PropertySchema = {
|
|
|
343
325
|
*/
|
|
344
326
|
required?: string[] | undefined;
|
|
345
327
|
title?: string | undefined;
|
|
346
|
-
type?:
|
|
328
|
+
type?: JsonSchemaType | JsonSchemaType[] | undefined;
|
|
347
329
|
/**
|
|
348
330
|
* @default false
|
|
349
331
|
*/
|
|
@@ -387,6 +369,10 @@ export type TypeConfiguration = {
|
|
|
387
369
|
*/
|
|
388
370
|
required?: string[] | undefined;
|
|
389
371
|
};
|
|
372
|
+
/**
|
|
373
|
+
* The valid replacement strategies are [create_then_delete] and [delete_then_create]. All other inputs are invalid.
|
|
374
|
+
*/
|
|
375
|
+
export type ReplacementStrategy = "create_then_delete" | "delete_then_create";
|
|
390
376
|
export type ResourceLink = {
|
|
391
377
|
$comment?: string | undefined;
|
|
392
378
|
mappings: Record<string, string>;
|