Giter Site home page Giter Site logo

standard's Introduction

Open Contracting Data standard

Build Status

To run tests locally:

pip install -r requirements.txt
py.test

To produce a new versioned-release-validation-schema:

cd standard/schema/utils
./make_validation_schema.py

Some things to bear in mind:

  • If you make a change to release-schema.json, you must also make a change to versioned-release-schema.json as they should always be in sync. Versioned release schema exists to layout the mergeStrategies for merging releases, but it must have the correct types in it from release schema.
  • If you make a change to versioned-release-schema, you must update the versioned-release-validation-schema.json.

The tests, which run automatically on every commit, check for both of these points of consistency.

###Notes

We have to be careful when defining mergeStrategies on items that are accessed by reference. In particular if they are used differently i.e. sometimes in arrays and sometimes individualls. Here is a list of all items that use refs, in order of how they appear in the schema (last updated on Sep 19, 2014)

  • buyer - organization
  • milestone - attachments - [attachment]
  • performance - milestones - [milestone]
  • performance - reports - [attachment]
  • planning - publicHearingNotice - [notice]
  • planning - anticipatedMilestones - [milestone]
  • tender - notice - notice
  • tender - itemsToBeProcured - [item]
  • tender - totalValue - value
  • tender - tenderPeriod - period
  • tender - clarificationPeriod - period
  • tender - awardPenriod - period
  • tender - bidders - [organization]
  • tender - procuringEntity - organization
  • tender - attachments - [attachment]
  • award - notice - notice
  • award - awardValue - value
  • award - suppliers - [organization]
  • award - itemsAwarded - [item]
  • contract - contractPeriod - period
  • contract - contractValue - value
  • contract - amendment - amendment
  • contract - itemsContracted - [item]
  • contract - deliverables - [deliverable]
  • contract - attachments - [attachment]
  • notice - amendment
  • deliverable - amendment

And here they are, but grouped by the item being referenced:

  • buyer - organization

  • tender - procuringEntity - organization

  • tender - bidders - [organization]

  • award - suppliers - [organization]

  • notice - amendment

  • deliverable - amendment

  • contract - amendment - amendment

  • milestone - attachments - [attachment]

  • performance - reports - [attachment]

  • tender - attachments - [attachment]

  • contract - attachments - [attachment]

  • contract - deliverables - [deliverable]

  • tender - itemsToBeProcured - [item]

  • contract - itemsContracted - [item]

  • award - itemsAwarded - [item]

  • performance - milestones - [milestone]

  • planning - anticipatedMilestones - [milestone]

  • planning - publicHearingNotice - notice

  • award - notice - notice

  • tender - notice - notice

  • tender - tenderPeriod - period

  • tender - clarificationPeriod - period

  • contract - contractPeriod - period

  • tender - awardPeriod - period

  • tender - totalValue - value

  • award - awardValue - value

  • contract - contractValue - value

In the case where we have items that are available both in an array and as an object, we have to be very careful with merging and specify the merge strategy at the parent level, not the object level.

standard's People

Contributors

birdsarah avatar michaeloroberts avatar practicalparticipation avatar dincamihai avatar mgax avatar avian2 avatar

Watchers

James Cloos avatar José Antonio García Morales avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.