@diagonal-hq/cli 0.45.1 → 0.45.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/README.md +1 -1
- package/dist/check-data.json +1 -1
- package/dist/{cli-check-data-T6OVGKWP.mjs → cli-check-data-KSRDBU2B.mjs} +4 -4
- package/dist/{cli-chunk-IUHDCZQP.mjs → cli-chunk-3CAJMOEQ.mjs} +5 -2
- package/dist/cli-chunk-MNY2MML6.mjs +87 -0
- package/dist/{cli-sdk-files.generated-ZKHJVYQH.mjs → cli-sdk-files.generated-HM6P42TW.mjs} +2 -2
- package/dist/{cli-workflows-TQAVRQ7O.mjs → cli-workflows-PSPXSY45.mjs} +1 -1
- package/dist/cli.mjs +3 -3
- package/dist/fields.generated.d.ts +2 -2
- package/dist/script-sdk.json +1 -1
- package/dist/workflow/generated/capabilities.d.ts +1 -1
- package/package.json +4 -4
- package/dist/cli-chunk-6HPUF67L.mjs +0 -87
|
@@ -746,7 +746,7 @@ var field_catalog_default = {
|
|
|
746
746
|
dictionary: {
|
|
747
747
|
settings: {
|
|
748
748
|
schema: {
|
|
749
|
-
required:
|
|
749
|
+
required: false,
|
|
750
750
|
values: null,
|
|
751
751
|
relation_types: null
|
|
752
752
|
},
|
|
@@ -2490,7 +2490,10 @@ function buildField(key, builder, keyNode, { checkKey = true } = {}) {
|
|
|
2490
2490
|
);
|
|
2491
2491
|
}
|
|
2492
2492
|
let settings = buildSettings(key, builder, entry, typeCatalog);
|
|
2493
|
-
|
|
2493
|
+
const schema = settings.schema;
|
|
2494
|
+
const emptySchema = schema === null || Array.isArray(schema) && schema.length === 0;
|
|
2495
|
+
const emptyDictionarySchema = type === "dictionary" && isPlainObject(schema) && Object.keys(schema).length === 0;
|
|
2496
|
+
if ((type === "list" || type === "dictionary") && emptySchema || emptyDictionarySchema) {
|
|
2494
2497
|
delete settings.schema;
|
|
2495
2498
|
}
|
|
2496
2499
|
if (type === "relation") {
|