Skip to content

Instantly share code, notes, and snippets.

@steventux
Last active August 16, 2016 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steventux/58be6eefa6f9a184aa7273d61a46a7a0 to your computer and use it in GitHub Desktop.
Save steventux/58be6eefa6f9a184aa7273d61a46a7a0 to your computer and use it in GitHub Desktop.
Common manual schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"child_section_groups"
],
"properties": {
"body": {
"type": "string",
"description": "This is only required by Specialist Publisher"
},
"child_section_groups": {
"type": "array",
"description": "This is based on the Specialist Publisher structure",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"child_sections"
],
"properties": {
"title": {
"type": "string"
},
"child_sections": {
"type": "array",
"items": {
"required": [
"section_id",
"title",
"description",
"base_path"
],
"additionalProperties": false,
"type": "object",
"properties": {
"section_id": {
"type": "string",
"description": "HMRC manuals specific"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"base_path": {
"$ref": "#/definitions/absolute_path"
}
}
}
}
}
}
},
"change_history": {
"$ref": "#/definitions/change_history",
"description": "Service manual uses the common schemas definition, we should migrate other manuals to this."
},
"organisations": {
"type": "array",
"description": "Specific to HMRC and Specialist Publisher manuals.",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"title",
"abbreviation",
"web_url"
],
"properties": {
"title": {
"type": "string"
},
"abbreviation": {
"type": "string"
},
"web_url": {
"type": "string"
}
}
}
},
"tags": {
"type": "object",
"description": "Specific to HMRC manuals",
"additionalProperties": false,
"properties": {
"topics": {
"description": "Slugs of the Manual's topics. An example of a topic slug is 'business-tax/vat'.",
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment