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

Allow number and boolean as JSON schema options #21

Closed
wants to merge 1 commit into from

Conversation

peterbroadhurst
Copy link
Contributor

@peterbroadhurst peterbroadhurst commented Jun 24, 2022

See hyperledger/firefly-signer#11

  • Allows number for non-integer types (fixed/ufixed) that can be specified as non-string
  • Update boolean support to include true/false strings as an option (all elementary types allow string basically)

Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
@nguyer
Copy link
Contributor

nguyer commented Jun 24, 2022

This is necessary, but the changes in this PR allow several combinations that should not be allowed. For example, this allows a schema that accepts both a boolean and a number. I've implemented it slightly differently in:

#22

@nguyer nguyer closed this Jun 24, 2022
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.

2 participants