-
Notifications
You must be signed in to change notification settings - Fork 118
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
New property requiredResources
#823
Comments
@peterdesmet
resources:
type: array
items: false
prefixItems: # Another option is using "contains"
- type: object
properties:
name: string
enum: [foo]
- type: object
properties:
name: string
enum: [bar] Then, by combining I think that's really great so we don't need to create new entities and complicate implementations. I'm closing let me know if it does not work |
It's also really good because last day I've been thinking about all this stuff regarding profiles/etc we discussed on the call. And I'm getting closer and closer to the model when we can completely rely only on JSON Schema basically for everything on the mete-meta level |
Nice and thanks for investigating! Good that we can rely on vanilla JSONSchema. I think it would be very useful though, if such tips make it to the documentation as examples, so others don't have to dive into GitHub issues. |
Currently, I think that we might have an |
When extending a data package profile (like we do for Camtrap DP) it is quite cumbersome to specify required resources. E.g. how to express a data package is only valid if one of the following combinations of resources is present (real use case described here):
foo
andbar
(and any other resource not named foo, bar, baz)foo
andbaz
(and any other resource not named foo, bar, baz)foo
,bar
andbaz
(and any other resource not named foo, bar, baz)Checking that certain resources are present is a common use case, so I asked on Slack.
@roll answered:
Me (@peterdesmet):
@roll:
The text was updated successfully, but these errors were encountered: