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
Would be great to automate the schema creation - even if it's crude at first, as a developer tool.
Admittedly, in many cases this may be an anti-pattern, however it can quickly aide in the creation of a schema - particularly when working with poorly documented API's, or when building parsers on one side of an integration, which must agree with an existing implementation.
Ideally i see this as a function [JSON] -> Schema, which can then be rendered out to a file.
Even if this is just the primitive assignments without any fancy string subtypes or other features, it should be reasonable to generate a schema which would fit all provided examples, Quickcheck could assist this process using existing Gen a -> [a] functions.
the rapid development advantages here could make this a great utility, even with appropriate warnings that the schema itself should be treated as the source of truth.
The text was updated successfully, but these errors were encountered:
Would be great to automate the schema creation - even if it's crude at first, as a developer tool.
Admittedly, in many cases this may be an anti-pattern, however it can quickly aide in the creation of a schema - particularly when working with poorly documented API's, or when building parsers on one side of an integration, which must agree with an existing implementation.
Ideally i see this as a function
[JSON] -> Schema
, which can then be rendered out to a file.Even if this is just the primitive assignments without any fancy string subtypes or other features, it should be reasonable to generate a schema which would fit all provided examples, Quickcheck could assist this process using existing
Gen a -> [a]
functions.the rapid development advantages here could make this a great utility, even with appropriate warnings that the schema itself should be treated as the source of truth.
The text was updated successfully, but these errors were encountered: