Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Value of start prop should be smaller then of end prop. #73

Open
sverhoeven opened this issue May 13, 2022 · 0 comments
Open

Value of start prop should be smaller then of end prop. #73

sverhoeven opened this issue May 13, 2022 · 0 comments

Comments

@sverhoeven
Copy link
Member

sverhoeven commented May 13, 2022

In a JSON schema you can have 2 props

{
  type: 'object',
  properties: {
    start: {
        type: number
        enum: [1,2,3,4]
    },
    end : {
        type: number
        enum: [1,2,3,4]
    }
  }
}

When rendered with react-jsonschema-form these props are independent. So having start=4 and end=1 is allowed.

It would be nice to enforce that the value of the end prop is always greater then the value of the start prop and the reverse.

Spin-off from #62 (review)

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

No branches or pull requests

1 participant