JSONSchemaType for a field that can be of type string or null #631
Unanswered
nisargpatel-m
asked this question in
Q&A
Replies: 1 comment
-
Hey there. Thanks for the question, but this might be something you need to take back to the maintainers of the library. Your usage of JSON Schema looks fine to me, though. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For a given interface:
the following JSONSchemaType validation is throwing an error. Playground link: https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgKQMoHkByqDGALAUxAEMAVATzALgF84AzKCEOAcmICsA3VgbgCh+wAHYwCUesRzUAwhGHCCOGMHmJ+cOAGsRAEwBccAM4woIgOYDNUnBACuo0sQBGAGwKGTZ4ebgAfOGE7V1cBGkFbYRM4SMVlVWFcQhJDNCwkojJKAgAeOQUlFXkAPjgAXnVNGGzDVghnDkLWABoNODAmKlhgAiNDBDbNHWEDSs1x6qparwtWQdpW8bgbe0cXd375qpq4AG0AIhmffea4faCQ-YBdefDNGkW4KAIARztgZ9Hd1mHdFrYVg4YE43ARWFdHsRdLpgEVhMRXAAFTriFS9QySVxGAitGgCCLyIwQdwAOlcEHMAApYoUEhkSABKIA
Reference used:
Beta Was this translation helpful? Give feedback.
All reactions