@json-layout/vocabulary 0.15.0 → 0.16.0

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 +1 -1
  2. package/src/normalize.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@json-layout/vocabulary",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "Main JSON Layout vocabulary as JSON schemas and Typescript types. Also contains some small utility functions to validate and normalize annotations.",
5
5
  "type": "module",
6
6
  "exports": {
package/src/normalize.js CHANGED
@@ -273,7 +273,9 @@ function getCompObject (layoutKeyword, schemaFragment, schemaPath, components, m
273
273
  partial.listEditMode = partial.listEditMode ?? (schemaFragment.items.type === 'object' ? 'inline-single' : 'inline')
274
274
  partial.listActions = partial.listActions ?? ['add', 'edit', 'delete', 'duplicate', 'sort']
275
275
  } else {
276
- if (!('label' in partial)) partial.label = schemaFragment.title ?? key
276
+ if (!('label' in partial) && partial.comp !== 'one-of-select') {
277
+ partial.label = schemaFragment.title ?? key
278
+ }
277
279
  }
278
280
 
279
281
  if (component.itemsBased && !partial.items) {