We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As far as I can tell, there is currently no support for patternProperties, arguably one of the more useful features of JSON schema.
patternProperties
Here is how I'd imagine to map things. Say we have two different patterns:
{ "title": "main", "patternProperties": { "regexp1": { "title": "title1", ... }, "regexp2": { "title": "title2" ... } } }
This would translate to something like this:
type alias Main = { title1 : Dict String a , title2 : Dict String b }
Here, the string keys would be the JSON key (matching the respective regexp), and a resp. b would be the types defined by the resp. ....
a
b
...
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As far as I can tell, there is currently no support for
patternProperties
, arguably one of the more useful features of JSON schema.Here is how I'd imagine to map things. Say we have two different patterns:
This would translate to something like this:
Here, the string keys would be the JSON key (matching the respective regexp), and
a
resp.b
would be the types defined by the resp....
.The text was updated successfully, but these errors were encountered: