You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to able to collect the remaining object fields into a Dict that can be put in the output rather than being stripped out.
It'd also be nice to be able to validate these as to say all remaining fields must validate their their names and/or values against some discriminator.
And it'd be really really nice if rescript-json-schema could generate these from the patternProperties and additionalProperties keywords.
I ran into this when manually creating a schema for package.json before realizing I could've used rescript-json-schema 😄.
Awesome libraries btw!
The text was updated successfully, but these errors were encountered:
It's a good feature. Not easy to implement, but at least it should be possible. I'm currently occupied with contributing to rescript@12 and rescript-rest library, so I won't have time for it in the near future.
If you are interested only in the JSON schema creation and not parsing, you can use JSONSchema.extend and manually add the additionalProperties field to the object schema.
I'd like to able to collect the remaining object fields into a
Dict
that can be put in the output rather than being stripped out.It'd also be nice to be able to validate these as to say all remaining fields must validate their their names and/or values against some discriminator.
And it'd be really really nice if
rescript-json-schema
could generate these from thepatternProperties
andadditionalProperties
keywords.I ran into this when manually creating a schema for package.json before realizing I could've used
rescript-json-schema
😄.Awesome libraries btw!
The text was updated successfully, but these errors were encountered: