Skip to content
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

planning, tender and contract sections allow duplicate milestones #814

Open
Tracked by #1480
duncandewhurst opened this issue Feb 13, 2019 · 3 comments
Open
Tracked by #1480
Assignees
Labels
Schema: Validation Relating to constraints in the JSON Schema
Milestone

Comments

@duncandewhurst
Copy link
Contributor

duncandewhurst commented Feb 13, 2019

In implementation.milestones the uniqueItems property is set to true, however the milestones arrays in planning, tender and contract do not have this property set.

This means that data with duplicate milestones (or duplicate milestone ids) in these sections doesn't result in a validation error.

The definition of milestone.id states:

A local identifier for this milestone, unique within this block

So uniqueItems should be set to true in all milestones arrays.

Adding this to the 2.0 milestone as it could make existing data invalid.

I'll open an issue on the CoVE tracker to add an additional check for duplicate milestones ids until we can add this to the schema.

cc @pindec

@duncandewhurst duncandewhurst added Schema Relating to other changes in the JSON Schema (renamed fields, schema properties, etc.) bug labels Feb 13, 2019
@duncandewhurst duncandewhurst added this to the 2.0 milestone Feb 13, 2019
@jpmckinney
Copy link
Member

I noticed this issue in extensions as well. open-contracting/ocdskit#92 can help with this.

@jpmckinney jpmckinney modified the milestones: 2.0.0, 1.2.0 Strict Jul 22, 2020
@jpmckinney jpmckinney added Schema: Validation Relating to constraints in the JSON Schema and removed Schema Relating to other changes in the JSON Schema (renamed fields, schema properties, etc.) labels Jul 22, 2020
@odscjen
Copy link
Contributor

odscjen commented May 17, 2022

Is this todo ready for a PR to be created?

@jpmckinney
Copy link
Member

This is in the 1.2.0 Strict milestone, where the idea is to add a "strict" version of the schema alongside the main version, so that publishers can opt-in to stricter rules (otherwise, we have to create a 2.0 release to apply the strict rules).

However, we haven't started on the documentation, etc. needed for a strict version. So this depends on #1046

@jpmckinney jpmckinney moved this to In progress in OCDS 1.2 Jul 2, 2024
@duncandewhurst duncandewhurst self-assigned this Oct 29, 2024
@duncandewhurst duncandewhurst moved this from In progress to Review in progress in OCDS 1.2 Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Schema: Validation Relating to constraints in the JSON Schema
Projects
Status: Review in progress
Development

No branches or pull requests

3 participants