Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I have the following schema where a user must choose on or another. I'm not allowing a default value. It renders visually a radiobutton. I'm using version 6.0.0-beta.16. But since this version (6) there is a default value that breaks our logic.
The same happens on the demo site https://rjsf-team.github.io/react-jsonschema-form/

What am I missing?

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "required": [
    "nietAkkoord"
  ],
  "properties": {
    "nietAkkoord": {
      "title": "Ik ben niet akkoord",
      "type": "boolean",
      "oneOf": [
        {
          "const": true,
          "title": "Ja"
        },
        {
          "const": false,
          "title": "Nee"
        }
      ],
      "not": {
        "const": true
      }
    }
  }
}
You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.