-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add
instructions_for_publishers
to Content Block schemas
We want to add a field to all Content Blocks that will be a short string containing an internal-only message. This adds the field `instructions_for_publishers` to a shared definitions file, and then uses it in the email and postal address schemas. As this is a Content Block specific field, it doesn't necessarily make sense to add it to the shared default-format, so if I understand the schema process correctly we can only add it to the details key.
- Loading branch information
Showing
8 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,9 @@ | |
"schema_name": "content_block_email_address", | ||
"document_type": "content_block_email_address", | ||
"title": "Government Digital Service - General contact", | ||
"description": "General contact email address for Government Digital Service", | ||
"content_id_alias": "gds-general", | ||
"details": { | ||
"instructions_for_publishers": "General contact email address for Government Digital Service", | ||
"email_address": "[email protected]" | ||
}, | ||
"links": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
content_schemas/formats/shared/definitions/_content_block_manager.jsonnet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
instructions_for_publishers: { | ||
description: "An internal message to be added to content blocks", | ||
type: "string", | ||
additionalProperties: false, | ||
} | ||
} |