Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion doc/compiled.json
Original file line number Diff line number Diff line change
Expand Up @@ -1472,6 +1472,28 @@
"code": "en-GB"
}
},
"locale_preview_global": {
"type": "object",
"title": "locale_preview_global",
"properties": {
"id": {
"type": "string",
"nullable": true,
"description": "The ID of the locale. Global Job Templates will return `null` here."
},
"name": {
"type": "string"
},
"code": {
"type": "string"
}
},
"example": {
"id": "abcd1234cdef1234abcd1234cdef1234",
"name": "English",
"code": "en-GB"
}
},
"locale": {
"type": "object",
"title": "locale",
Expand Down Expand Up @@ -3521,7 +3543,7 @@
"example": null
},
"locale": {
"$ref": "#/components/schemas/locale_preview"
"$ref": "#/components/schemas/locale_preview_global"
},
"users": {
"type": "array",
Expand Down
2 changes: 2 additions & 0 deletions schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ schemas:
"$ref": schemas/project_report.yaml#/project_report
locale_preview:
"$ref": schemas/locale_preview.yaml#/locale_preview
locale_preview_global:
"$ref": schemas/locale_preview_global.yaml#/locale_preview_global
locale:
"$ref": schemas/locale.yaml#/locale
locale_download:
Expand Down
2 changes: 1 addition & 1 deletion schemas/job_template_locale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ job_template_locale:
job_template:
"$ref": "./job_template_preview.yaml#/job_template_preview"
locale:
"$ref": "./locale_preview.yaml#/locale_preview"
"$ref": "./locale_preview_global.yaml#/locale_preview_global"
users:
type: array
items:
Expand Down
17 changes: 17 additions & 0 deletions schemas/locale_preview_global.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
locale_preview_global:
type: object
title: locale_preview_global
properties:
id:
type: string
nullable: true
description: The ID of the locale. Global Job Templates will return `null` here.
name:
type: string
code:
type: string
example:
id: abcd1234cdef1234abcd1234cdef1234
name: English
code: en-GB
Loading