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

Commit

Permalink
Merge pull request #522 from alphagov/corp-about-parts
Browse files Browse the repository at this point in the history
Add corporate information groups to corporate information pages
  • Loading branch information
fofr committed Feb 17, 2017
2 parents e3dbda4 + cc2986a commit 2a0dd54
Show file tree
Hide file tree
Showing 229 changed files with 16,416 additions and 3,164 deletions.
86 changes: 72 additions & 14 deletions dist/formats/answer/frontend/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,23 +256,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 @@ -694,6 +727,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
Original file line number Diff line number Diff line change
Expand Up @@ -258,23 +258,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 @@ -696,6 +729,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
Original file line number Diff line number Diff line change
Expand Up @@ -209,23 +209,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 @@ -647,6 +680,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
Loading

0 comments on commit 2a0dd54

Please sign in to comment.