-
Notifications
You must be signed in to change notification settings - Fork 374
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
Should formatIs ranker support null types? #1804
Comments
Hi @alastair-todd thanks for the report. If I read the spec correctly we should probably not hard code a check against The only problem I see here is for users who are already using |
In the mean time you can always write your own version of |
Well yeah I've gone and created my own testers. const formatIs = (expectedFormat: string): Tester =>
schemaMatches((schema) => !isEmpty(schema) && schema.format === expectedFormat); Its the same for [
{
"title":" ",
"type":"null"
},
{
"title":"Permanent",
"const":"Permanent"
},
{
"title":"Temporary",
"const":"Temporary"
},
{
"title":"Casual",
"const":"Casual"
}
] const isOneOfEnumControl = and(
uiTypeIs('Control'),
schemaMatches(schema =>
schema.hasOwnProperty('oneOf')
)
); (removed the in-built version's forcing all options to be |
This was fixed with #1925 |
Describe the bug
Expected behavior
Should support nulls
type: ['string', 'null']
Steps to reproduce the issue
N/A
Screenshots
No response
In which browser are you experiencing the issue?
N/A
Framework
Core
RendererSet
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: