Skip to content

Commit

Permalink
Add govspeak support for finder summary
Browse files Browse the repository at this point in the history
  • Loading branch information
kashifatcha committed Feb 18, 2025
1 parent 85627c1 commit 1f533fe
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 32 deletions.
9 changes: 1 addition & 8 deletions content_schemas/dist/formats/finder/frontend/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -644,14 +644,7 @@
}
},
"finder_summary": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
"type": "string"
},
"first_published_at": {
"description": "The date the content was first published. Automatically determined by the publishing-api, unless overridden by the publishing application.",
Expand Down
28 changes: 20 additions & 8 deletions content_schemas/dist/formats/finder/notification/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -744,14 +744,7 @@
}
},
"finder_summary": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
"$ref": "#/definitions/multiple_content_types"
},
"first_published_at": {
"description": "The date the content was first published. Automatically determined by the publishing-api, unless overridden by the publishing application.",
Expand Down Expand Up @@ -1002,6 +995,25 @@
"zh-tw"
]
},
"multiple_content_types": {
"type": "array",
"items": {
"type": "object",
"required": [
"content_type",
"content"
],
"additionalProperties": false,
"properties": {
"content": {
"type": "string"
},
"content_type": {
"type": "string"
}
}
}
},
"payload_version": {
"description": "Counter to indicate when the payload was generated",
"type": "integer"
Expand Down
28 changes: 20 additions & 8 deletions content_schemas/dist/formats/finder/publisher_v2/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -536,14 +536,7 @@
}
},
"finder_summary": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
"$ref": "#/definitions/multiple_content_types"
},
"first_published_at": {
"description": "The date the content was first published. Automatically determined by the publishing-api, unless overridden by the publishing application.",
Expand Down Expand Up @@ -655,6 +648,25 @@
"zh-tw"
]
},
"multiple_content_types": {
"type": "array",
"items": {
"type": "object",
"required": [
"content_type",
"content"
],
"additionalProperties": false,
"properties": {
"content": {
"type": "string"
},
"content_type": {
"type": "string"
}
}
}
},
"public_updated_at": {
"description": "When the content was last significantly changed (a major update). Shown to users. Automatically determined by the publishing-api, unless overridden by the publishing application.",
"type": "string",
Expand Down
9 changes: 1 addition & 8 deletions content_schemas/formats/shared/definitions/finder.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,7 @@
],
},
finder_summary: {
anyOf: [
{
type: "string",
},
{
type: "null",
},
],
"$ref": "#/definitions/multiple_content_types"
},
finder_beta: {
description: "Indicates if finder is in beta. TODO: Switch to top-level phase label",
Expand Down

0 comments on commit 1f533fe

Please sign in to comment.