-
Notifications
You must be signed in to change notification settings - Fork 3
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
Added jsonSchema
constraint to object
and array
fields
#32
Conversation
Do I understand correctly there is currently no real use case for this: frictionlessdata/specs#640 (comment)? |
@peterdesmet |
Co-authored-by: Peter Desmet <peter.desmet.work@gmail.com>
Deploying with Cloudflare Pages
|
Why must it be a JSON object ( So I vote in favor of the |
@ezwelty
I'm not sure if having one arbitrary But the bottom line that both are just aliases to |
If personally, I were modeling type system from scratch I might actually use hierarchical types like:
But we have what we have an I guess it just works fine |
Fine. In that case, this new But wouldn't |
I support that. |
@ezwelty I agree that the |
From an implementation perspective, I presume packages like https://pypi.org/project/jsonschema/ would be used, which support the full JSON Schema spec, so the restriction would be an artificial one, and therefore frustrating to users who run up against it (e.g. trying to use |
@ezwelty |
@roll Then let's go with this and the constraint can always be opened up to other types by feature request. |
jsonSchema
property to object fieldjsonSchema
constraint to object
and array
fields
Following the discussion the PR has been updated to |
ACCEPTED by WG (6/9) |
json
field type andjsonSchema
constraint support specs#640Rationale
Please see the attached issue.
Note
I think the initial wording didn't mention that
object
needs to be an object, not just JSON by mistake. It's been fixed here.