Skip to content
This repository has been archived by the owner on Jan 10, 2019. It is now read-only.

open-contracting-archive/mapping-sheet-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Schema Mapping Spreadsheet Generator

This is an OCDS Labs script: no guarantees as to the stability or operation of the script are provided.

This script will generate a spreadsheet that includes all possible field paths represented in an OCDS schema.

To do this it will:

  • Resolve all references in the schema;
  • Make sure descriptions from the parent object containing a reference are maintained;
  • Check for deprecation information

This version of the script can be run with the URL to a schema provided as the first parameter, or without, in which case it will look for a file named release-schema.json in the same folder.

The output is written to fields.csv

Installation

virtualenv .ve --python=/usr/local/bin/python3.4
source .ve/bin/activate
pip install -r requirements.txt

Usage

python generate.py http://standard.open-contracting.org/latest/en/release-schema.json

Releases

No releases published

Packages

No packages published

Languages