trickvi / bdp2ckan

Turn a Budget Data Package into a CKAN instance
GNU General Public License v3.0
0 stars 0 forks source link

Schema always assumes source has an object value #9

Open trickvi opened 9 years ago

trickvi commented 9 years ago

In the examples of the budget data package specification it is clear that it's possible to define the source with a string, not only an object.

The schema can only evaluate:

{
    "year": {
        "source": "source field name"
    }
}

but not

{
    "year": "source field name"
}
trickvi commented 9 years ago

Currently the schema uses patternProperties but that might change with openspending/fiscal-data-package/pull/53 so I'm not updating the schema until that pull request has been resolved (closed or merged) to save me some work. Also the short version isn't defined in the spec except in an example so there's no hurry.