Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
Generate dist files with new definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
fofr committed Feb 16, 2017
1 parent dfd9de7 commit cc2986a
Show file tree
Hide file tree
Showing 225 changed files with 16,225 additions and 3,150 deletions.
86 changes: 72 additions & 14 deletions dist/formats/answer/frontend/schema.json
Expand Up @@ -259,23 +259,56 @@
"external_related_links": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"title",
"url"
],
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
"$ref": "#/definitions/external_link"
}
},
"external_link": {
"type": "object",
"additionalProperties": false,
"required": [
"title",
"url"
],
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
}
},
"internal_link_without_guid": {
"description": "Links to pages on GOV.UK without a corresponding GUID. eg A filtered list of publications",
"type": "object",
"additionalProperties": false,
"required": [
"title",
"path"
],
"properties": {
"title": {
"type": "string"
},
"path": {
"$ref": "#/definitions/absolute_fullpath"
}
}
},
"internal_or_external_link": {
"anyOf": [
{
"$ref": "#/definitions/external_link"
},
{
"$ref": "#/definitions/internal_link_without_guid"
},
{
"$ref": "#/definitions/guid"
}
]
},
"government": {
"type": "object",
"additionalProperties": false,
Expand Down Expand Up @@ -697,6 +730,31 @@
"description": "The maximum length of time the content should be cached, in seconds",
"type": "integer"
},
"grouped_lists_of_links": {
"description": "Lists of links with titles in named groups",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"name",
"contents"
],
"properties": {
"name": {
"description": "Title of the group",
"type": "string"
},
"contents": {
"description": "An ordered list of links, either internal with GUID or external with URL and title",
"type": "array",
"items": {
"$ref": "#/definitions/internal_or_external_link"
}
}
}
}
},
"topic_groups": {
"description": "Lists of items with titles & paths in named groups, used for showing curated links on browse pages and topics",
"type": "array",
Expand Down
86 changes: 72 additions & 14 deletions dist/formats/answer/notification/schema.json
Expand Up @@ -261,23 +261,56 @@
"external_related_links": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"title",
"url"
],
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
"$ref": "#/definitions/external_link"
}
},
"external_link": {
"type": "object",
"additionalProperties": false,
"required": [
"title",
"url"
],
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
}
},
"internal_link_without_guid": {
"description": "Links to pages on GOV.UK without a corresponding GUID. eg A filtered list of publications",
"type": "object",
"additionalProperties": false,
"required": [
"title",
"path"
],
"properties": {
"title": {
"type": "string"
},
"path": {
"$ref": "#/definitions/absolute_fullpath"
}
}
},
"internal_or_external_link": {
"anyOf": [
{
"$ref": "#/definitions/external_link"
},
{
"$ref": "#/definitions/internal_link_without_guid"
},
{
"$ref": "#/definitions/guid"
}
]
},
"government": {
"type": "object",
"additionalProperties": false,
Expand Down Expand Up @@ -699,6 +732,31 @@
"description": "The maximum length of time the content should be cached, in seconds",
"type": "integer"
},
"grouped_lists_of_links": {
"description": "Lists of links with titles in named groups",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"name",
"contents"
],
"properties": {
"name": {
"description": "Title of the group",
"type": "string"
},
"contents": {
"description": "An ordered list of links, either internal with GUID or external with URL and title",
"type": "array",
"items": {
"$ref": "#/definitions/internal_or_external_link"
}
}
}
}
},
"topic_groups": {
"description": "Lists of items with titles & paths in named groups, used for showing curated links on browse pages and topics",
"type": "array",
Expand Down
86 changes: 72 additions & 14 deletions dist/formats/answer/publisher/schema.json
Expand Up @@ -212,23 +212,56 @@
"external_related_links": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"title",
"url"
],
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
"$ref": "#/definitions/external_link"
}
},
"external_link": {
"type": "object",
"additionalProperties": false,
"required": [
"title",
"url"
],
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
}
},
"internal_link_without_guid": {
"description": "Links to pages on GOV.UK without a corresponding GUID. eg A filtered list of publications",
"type": "object",
"additionalProperties": false,
"required": [
"title",
"path"
],
"properties": {
"title": {
"type": "string"
},
"path": {
"$ref": "#/definitions/absolute_fullpath"
}
}
},
"internal_or_external_link": {
"anyOf": [
{
"$ref": "#/definitions/external_link"
},
{
"$ref": "#/definitions/internal_link_without_guid"
},
{
"$ref": "#/definitions/guid"
}
]
},
"government": {
"type": "object",
"additionalProperties": false,
Expand Down Expand Up @@ -650,6 +683,31 @@
"description": "The maximum length of time the content should be cached, in seconds",
"type": "integer"
},
"grouped_lists_of_links": {
"description": "Lists of links with titles in named groups",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"name",
"contents"
],
"properties": {
"name": {
"description": "Title of the group",
"type": "string"
},
"contents": {
"description": "An ordered list of links, either internal with GUID or external with URL and title",
"type": "array",
"items": {
"$ref": "#/definitions/internal_or_external_link"
}
}
}
}
},
"topic_groups": {
"description": "Lists of items with titles & paths in named groups, used for showing curated links on browse pages and topics",
"type": "array",
Expand Down

0 comments on commit cc2986a

Please sign in to comment.