@decocms/bindings 1.3.2 → 1.3.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/package.json
CHANGED
|
@@ -107,8 +107,8 @@ type JsonSchema = {
|
|
|
107
107
|
properties?: Record<string, unknown>;
|
|
108
108
|
required?: string[];
|
|
109
109
|
description?: string;
|
|
110
|
-
additionalProperties?: boolean
|
|
111
|
-
additionalItems?: boolean
|
|
110
|
+
additionalProperties?: boolean | Record<string, unknown>;
|
|
111
|
+
additionalItems?: boolean | Record<string, unknown>;
|
|
112
112
|
items?: JsonSchema;
|
|
113
113
|
};
|
|
114
114
|
const JsonSchemaSchema: z.ZodType<JsonSchema> = z.lazy(() =>
|
|
@@ -118,8 +118,12 @@ const JsonSchemaSchema: z.ZodType<JsonSchema> = z.lazy(() =>
|
|
|
118
118
|
properties: z.record(z.string(), z.unknown()).optional(),
|
|
119
119
|
required: z.array(z.string()).optional(),
|
|
120
120
|
description: z.string().optional(),
|
|
121
|
-
additionalProperties: z
|
|
122
|
-
|
|
121
|
+
additionalProperties: z
|
|
122
|
+
.union([z.boolean(), z.record(z.string(), z.unknown())])
|
|
123
|
+
.optional(),
|
|
124
|
+
additionalItems: z
|
|
125
|
+
.union([z.boolean(), z.record(z.string(), z.unknown())])
|
|
126
|
+
.optional(),
|
|
123
127
|
items: JsonSchemaSchema.optional(),
|
|
124
128
|
})
|
|
125
129
|
.passthrough(),
|