Skip to content

Conversation

@sandrina-p
Copy link
Collaborator

@sandrina-p sandrina-p commented May 4, 2025

With this now the following JSON Schema which has a select/radio field gets converted properly with options:

{
  type: 'object',
  properties: {
    status: {
      'enum': ['active', true, false, 1],
      'x-jsf-presentation': {
        inputType: 'radio',
      },
    },
  },
}

Field Output:

{
  name: 'status',
  enum: ['active', true, false, 1],
  // 🆕 New!
  options: [
    { label: 'active', value: 'active' },
    { label: 'true', value: true },
    { label: 'false', value: false },
    { label: '1', value: 1 },
  ],
},

Internal ticket

Copy link
Collaborator

@dragidavid dragidavid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this!

@sandrina-p sandrina-p merged commit 27c6953 into main May 5, 2025
2 checks passed
@sandrina-p sandrina-p deleted the rmt-1606-jsf-select-enum-is-not-supported-as-options branch May 5, 2025 09:17
@sandrina-p sandrina-p mentioned this pull request May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants