{"action":"created","issue":{"url":"https://api.github.com/repos/alphagov/publishing-api/issues/318","repository_url":"https://api.github.com/repos/alphagov/publishing-api","labels_url":"https://api.github.com/repos/alphagov/publishing-api/issues/318/labels{/name}","comments_url":"https://api.github.com/repos/alphagov/publishing-api/issues/318/comments","events_url":"https://api.github.com/repos/alphagov/publishing-api/issues/318/events","html_url":"https://github.com/alphagov/publishing-api/issues/318","id":155929748,"number":318,"title":"Links and expanded links oddities","user":{"login":"fofr","id":319055,"avatar_url":"https://avatars.githubusercontent.com/u/319055?v=3","gravatar_id":"","url":"https://api.github.com/users/fofr","html_url":"https://github.com/fofr","followers_url":"https://api.github.com/users/fofr/followers","following_url":"https://api.github.com/users/fofr/following{/other_user}","gists_url":"https://api.github.com/users/fofr/gists{/gist_id}","starred_url":"https://api.github.com/users/fofr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fofr/subscriptions","organizations_url":"https://api.github.com/users/fofr/orgs","repos_url":"https://api.github.com/users/fofr/repos","events_url":"https://api.github.com/users/fofr/events{/privacy}","received_events_url":"https://api.github.com/users/fofr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-20T10:08:20Z","updated_at":"2016-05-31T10:25:59Z","closed_at":null,"body":"I spoke to @danielroseman about this in person.\r\n\r\nFor this content item:\r\nhttps://www.gov.uk/api/content/government/collections/national-driving-and-riding-standards\r\n\r\nI noticed a couple of counter-intuitive things.\r\n\r\n### Expanded links appears to have less information than links\r\n\r\n```json\r\n{\r\n\"analytics_identifier\": null,\r\n\"api_url\": \"https://www.gov.uk/api/content/government/publications/car-and-light-van-driver-competence-framework\",\r\n\"base_path\": \"/government/publications/car-and-light-van-driver-competence-framework\",\r\n\"content_id\": \"5e5dd324-7631-11e4-a3cb-005056011aef\",\r\n\"description\": \"The research, statistics and professional opinions which form the basis of the 'National standard for driving cars and light vans'.\",\r\n\"locale\": \"en\",\r\n\"title\": \"Car and light van driver competence framework\",\r\n\"web_url\": \"https://www.gov.uk/government/publications/car-and-light-van-driver-competence-framework\",\r\n\"expanded_links\": {}\r\n}\r\n```\r\nCompared to\r\n```json\r\n{\r\n\"content_id\": \"5e5dd324-7631-11e4-a3cb-005056011aef\",\r\n\"title\": \"Car and light van driver competence framework\",\r\n\"base_path\": \"/government/publications/car-and-light-van-driver-competence-framework\",\r\n\"description\": \"The research, statistics and professional opinions which form the basis of the 'National standard for driving cars and light vans'.\",\r\n\"api_url\": \"https://www.gov.uk/api/content/government/publications/car-and-light-van-driver-competence-framework\",\r\n\"web_url\": \"https://www.gov.uk/government/publications/car-and-light-van-driver-competence-framework\",\r\n\"locale\": \"en\",\r\n\"schema_name\": \"placeholder_publication\",\r\n\"document_type\": \"guidance\",\r\n\"analytics_identifier\": null,\r\n\"links\": {\r\n  \"organisations\": [\r\n    \"d39237a5-678b-4bb5-a372-eb2cb036933d\"\r\n  ],\r\n  \"alpha_taxons\": [\r\n    \"47f86db5-4641-4aca-b3fc-c15fcfa4da46\"\r\n  ]\r\n}\r\n}\r\n```\r\n\r\n### Links contain properties that don't validate\r\n\r\nWhen copying and pasting the links block into an example.json file in content schemas, there are some \"additional properties\" that cause validation to fail.\r\n\r\nFor example:\r\n```\r\nThe property '#/links/document_collections/0/links' contains additional properties [\"organisations\", \"alpha_taxons\"] outside of the schema when none are allowed in schema file:///var/govuk-sites/govuk-content-schemas/dist/formats/publication/frontend/schema.json#\r\n```"},"comment":{"url":"https://api.github.com/repos/alphagov/publishing-api/issues/comments/222650323","html_url":"https://github.com/alphagov/publishing-api/issues/318#issuecomment-222650323","issue_url":"https://api.github.com/repos/alphagov/publishing-api/issues/318","id":222650323,"user":{"login":"elliotcm","id":109225,"avatar_url":"https://avatars.githubusercontent.com/u/109225?v=3","gravatar_id":"","url":"https://api.github.com/users/elliotcm","html_url":"https://github.com/elliotcm","followers_url":"https://api.github.com/users/elliotcm/followers","following_url":"https://api.github.com/users/elliotcm/following{/other_user}","gists_url":"https://api.github.com/users/elliotcm/gists{/gist_id}","starred_url":"https://api.github.com/users/elliotcm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliotcm/subscriptions","organizations_url":"https://api.github.com/users/elliotcm/orgs","repos_url":"https://api.github.com/users/elliotcm/repos","events_url":"https://api.github.com/users/elliotcm/events{/privacy}","received_events_url":"https://api.github.com/users/elliotcm/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T10:25:59Z","updated_at":"2016-05-31T10:25:59Z","body":"@danielroseman Have we put this into our backlog somewhere?  i.e. can this be closed?"}}
{"actor":{"display_login":"elliotcm"}}