-
Notifications
You must be signed in to change notification settings - Fork 1
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
rdl_schema_0_1.json: update exposure object #101
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to do the following steps described in #105 (review):
Let's merge #109 and #110 before merging this PR. To reduce the number of merge conflicts, once those PRs are merged, we can reindent the schema files in this PR by running
ocdskit indent -r .
and then mergedev
into this PR.Let's also run OCDS Kit's
schema-strict
command to add validation properties to prevent empty arrays, strings and objects.
Co-authored-by: Duncan Dewhurst <[email protected]>
…to 62_exposure_schema
The error it's finding is just that |
When adding codelist links in schema descriptions, please use the version placeholders introduced in #10, e.g. https://rdl-standard.readthedocs.io/en/{{version}}/data_model/codelists#risk_data_type |
The tests expect definitions that appear in an array property's However, given that Regarding the other error, see my comment in #105 (comment) - I think the same thing has happened here. |
Having looked into it more, the issue is that the To avoid the schema being in an incoherent state we should either reinstate the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to run ./manage.py pre-commit
to update docs/data_model/codelists.md
.
I can imagine a case where there are costs for 2 types in different currencies though, in that case I think currency still needs to be provided? @stufraser1 thoughts? |
In the case of a dataset containing costs in multiple currencies, even if the currencies were specified in the RDLS metadata, the currencies for each cost would also need to be specified in the dataset itself otherwise it would be impossible to know which cost was in which currency, In the case of a dataset containing costs in a single currency, I had assumed that currencies would also be specified within the dataset itself so. If that's not the case, then there is an argument for putting currency in the metadata. |
I think that both |
…sudo),29(audio),30(dip),46(plugdev),107(input),120(lpadmin),132(lxd),133(sambashare),30000(clevo-keyboard) to and remove references to common_exp_val_type
I agree. Usual practice to include currency code in the data. |
Resolves #62, adds new object in
$defs
forCost
which will be reused inVulnerability
andLoss
.References
Temporal
object but this hasn't been created yet.