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
deployments, media, event-observations or media-observations, with further requirements for those (i.e. the table schemas).
Not deployments, media, event-observations or media-observations (i.e. custom tables)
This allows custom resources while also preventing resources named e.g. deployments from not following the specs.
Requiring resources
The specs don't include anything however on what resources we expect:
deployments, media, media-observations + any custom resource
deployments, media, event-observations + any custom resource
deployments, media, media-observations, event-observations + any custom resource
So a Camtrap DP with e.g. foo, bar, baz (3 custom resources) and pass validation.
I don't know how to express a combination of the above (requiring resources and allowing custom ones) in JSON schema. Does anyone have any experience with this?
Even if we did, the validation error would likely be very hard to understand. Should we leave what combination of required resources we expect to software handling Camtrap DP? In my opinion checking that is easier than figuring out that a resource named e.g. deployments is not following the specs.
Note that the single observation table (#314) has not resolved this issue. The issue is fairly minor though: technically, a Camtrap DP dataset can have just 3 custom resources and pass validation. As written above, such a dataset would likely fail any implementation.
Note that false positives will fail validation, i.e. custom tables pretending to be Camtrap DP tables (e.g. naming it deployments).
peterdesmet
changed the title
Required resources: express in specs?
Camtrap DP with only custom resources can pass validation
May 26, 2023
This issue is about how Camtrap DP specifies its resources / data files.
Preventing resources pretending to be Camtrap DP
Currently, a resource must either be:
deployments
,media
,event-observations
ormedia-observations
, with further requirements for those (i.e. the table schemas).deployments
,media
,event-observations
ormedia-observations
(i.e. custom tables)This allows custom resources while also preventing resources named e.g.
deployments
from not following the specs.Requiring resources
The specs don't include anything however on what resources we expect:
deployments
,media
,media-observations
+ any custom resourcedeployments
,media
,event-observations
+ any custom resourcedeployments
,media
,media-observations
,event-observations
+ any custom resourceSo a Camtrap DP with e.g.
foo
,bar
,baz
(3 custom resources) and pass validation.I don't know how to express a combination of the above (requiring resources and allowing custom ones) in JSON schema. Does anyone have any experience with this?
Even if we did, the validation error would likely be very hard to understand. Should we leave what combination of required resources we expect to software handling Camtrap DP? In my opinion checking that is easier than figuring out that a resource named e.g.
deployments
is not following the specs.Ping @tucotuco @kbubnicki @timrobertson100 @damianooldoni @PietrH
The text was updated successfully, but these errors were encountered: