Skip to content

test_json.py: Validate JSON files against JSON Schema #7

@jpmckinney

Description

@jpmckinney

2019 update: Running the following on each of the standard, profile, extension repos:

find . -name '*.json' -not -name 'extension.json' -not -name '*-schema.json' -not -path '*metaschema*' -not -path '*/_static/docson/*'

Only these have OCDS JSON files:

  • standard/docs/en/examples
  • standard/docs/en/examples/merging
  • infrastructure/docs/examples
  • public-private-partnerships/docs/examples (from OCDS Show)
  • ocds_budget_and_spend_extension/examples
  • ocds_contract_completion_extension/examples

Off the top of my head, we'd need to:

  • Determine whether this JSON file has an appropriate JSON Schema to validate against
  • Determine which JSON Schema to use (based on the presence of keys and the version)
  • Support extensions and automatically extend the JSON Schema

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions