{"action":"opened","issue":{"url":"https://api.github.com/repos/open-contracting/standard/issues/336","repository_url":"https://api.github.com/repos/open-contracting/standard","labels_url":"https://api.github.com/repos/open-contracting/standard/issues/336/labels{/name}","comments_url":"https://api.github.com/repos/open-contracting/standard/issues/336/comments","events_url":"https://api.github.com/repos/open-contracting/standard/issues/336/events","html_url":"https://github.com/open-contracting/standard/issues/336","id":155979627,"number":336,"title":"Codelist properties in schema","user":{"login":"kindly","id":30636,"avatar_url":"https://avatars.githubusercontent.com/u/30636?v=3","gravatar_id":"","url":"https://api.github.com/users/kindly","html_url":"https://github.com/kindly","followers_url":"https://api.github.com/users/kindly/followers","following_url":"https://api.github.com/users/kindly/following{/other_user}","gists_url":"https://api.github.com/users/kindly/gists{/gist_id}","starred_url":"https://api.github.com/users/kindly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kindly/subscriptions","organizations_url":"https://api.github.com/users/kindly/orgs","repos_url":"https://api.github.com/users/kindly/repos","events_url":"https://api.github.com/users/kindly/events{/privacy}","received_events_url":"https://api.github.com/users/kindly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-20T14:45:53Z","updated_at":"2016-05-20T14:45:53Z","closed_at":null,"body":"Add new properties in JSON Schema to point to relevant code list and specify if it is an open codelist.\r\n\r\nLets take [award criteria](http://standard.open-contracting.org/latest/en/schema/codelists/#award-criteria) as an example.  It is an open codelist.  The schema for it should then look like\r\n\r\n```\r\n{\r\n                    \"description\": \"Specify the award criteria for the procurement, using the [award criteria codelist](http://standard.open-contracting.org/latest/en/schema/codelists/#award-criteria)\",\r\n                    \"type\": [\"string\", \"null\"],\r\n                    \"mergeStrategy\": \"ocdsVersion\",\r\n                    \"openCodelist\": true,\r\n                    \"codelist\": \"awardCriteria.csv\"\r\n}\r\n```\r\nSo there should be two extra properties added to the JSON schema.  \r\n\r\n- codelist (filename of the codelist - required if this field is a codelist)\r\n- openCodelist (only required and set to true if an open codelist, otherwise assumed closed codelist)\r\n\r\nThe \"codelist\" property is the file-name of the file in the [codelist directory](https://github.com/open-contracting/standard/tree/1.0/standard/schema/codelists) in the standard repository. An extension should be able to overwrite a codelist and specify their own or add codelists as laid out in the [extension template] (https://github.com/open-contracting/standard_extension_template) .\r\n\r\n"}}
{"actor":{"display_login":"kindly"}}