@koumoul/vjsf 3.15.6 → 3.15.7

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 (2) hide show
  1. package/package.json +2 -2
  2. package/src/compat/v2.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koumoul/vjsf",
3
- "version": "3.15.6",
3
+ "version": "3.15.7",
4
4
  "description": "Generate forms for the vuetify UI library (vuejs) based on annotated JSON schemas.",
5
5
  "scripts": {
6
6
  "test": "vitest run",
@@ -71,7 +71,7 @@
71
71
  "vuetify": "^3.6.13"
72
72
  },
73
73
  "dependencies": {
74
- "@json-layout/core": "~1.10.4",
74
+ "@json-layout/core": "~1.10.9",
75
75
  "@json-layout/vocabulary": "~2.3.3",
76
76
  "@vueuse/core": "^12.5.0",
77
77
  "debug": "^4.3.4"
package/src/compat/v2.js CHANGED
@@ -163,7 +163,7 @@ const processFragment = (schema, getJSONRef, schemaId, processed) => {
163
163
 
164
164
  if (schema.type === 'array' && schema.items && !layout.getItems) {
165
165
  if (!Array.isArray(schema.items)) {
166
- layout.comp = 'list'
166
+ layout.comp = layout.comp ?? 'list'
167
167
  if (schema['x-itemTitle']) layout.itemTitle = `data["${schema['x-itemTitle']}"]`
168
168
  else {
169
169
  // vjsf 2 implicitly used a title property as an item title in lists