Skip to content

Add describedby field for the extended release schema #426

@irwink

Description

@irwink

Edit: This issue effectively starts at #426 (comment)

$schema is meant for the "metaschema", not for the "schema". The linked comment proposes using a describedby field to link to the schema.


I suggest that a "$schema" field be added to all contracting data files. The "$schema" field's value would be either a single URI of the schema that the data claims to conform to, or a list of schema (e.g. if the data conforms the OCDS and and extension schema). This would be very useful from both a quality assurance perspective as well as parsing and consuming the contracting data. Programs would know which schema the data conforms to and how to properly parse them. This is especially useful if the data repository contains a mix of data files that conform to the OCDS, extension schema or some other schema.

An example would be (using the Paraguay sample data)

{
"uri": "https://www.contrataciones.gov.py/datos/record-package/273637.json",
"$schema": "http://standard.open-contracting.org/schema/1__0__1/release-schema.json",
"publisher": {
"uri": "https://contrataciones.gov.py/datos",
"legalName": "Dirección Nacional de Contrataciones Públicas, Paraguay",
"name": "DNCP - Paraguay"
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    Focus - PackagesRelating to release packages and record packagesSchemaRelating to other changes in the JSON Schema (renamed fields, schema properties, etc.)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions