Skip to content

Commit 646b5c7

Browse files
committed
Fix comment: Also consider locale-schema.yaml
1 parent cc1c860 commit 646b5c7

File tree

4 files changed

+43
-2
lines changed

4 files changed

+43
-2
lines changed

doc/compiled.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,6 +1450,28 @@
14501450
"code": "en-GB"
14511451
}
14521452
},
1453+
"locale_preview_global": {
1454+
"type": "object",
1455+
"title": "locale_preview_global",
1456+
"properties": {
1457+
"id": {
1458+
"type": "string",
1459+
"nullable": true,
1460+
"description": "The ID of the locale. Global Job Templates will return `null` here."
1461+
},
1462+
"name": {
1463+
"type": "string"
1464+
},
1465+
"code": {
1466+
"type": "string"
1467+
}
1468+
},
1469+
"example": {
1470+
"id": "abcd1234cdef1234abcd1234cdef1234",
1471+
"name": "English",
1472+
"code": "en-GB"
1473+
}
1474+
},
14531475
"locale": {
14541476
"type": "object",
14551477
"title": "locale",
@@ -3297,7 +3319,7 @@
32973319
"example": null
32983320
},
32993321
"locale": {
3300-
"$ref": "#/components/schemas/locale_preview"
3322+
"$ref": "#/components/schemas/locale_preview_global"
33013323
},
33023324
"users": {
33033325
"type": "array",

schemas.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ schemas:
4444
"$ref": schemas/project_report.yaml#/project_report
4545
locale_preview:
4646
"$ref": schemas/locale_preview.yaml#/locale_preview
47+
locale_preview_global:
48+
"$ref": schemas/locale_preview_global.yaml#/locale_preview_global
4749
locale:
4850
"$ref": schemas/locale.yaml#/locale
4951
locale_download:

schemas/job_template_locale.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ job_template_locale:
1010
job_template:
1111
"$ref": "./job_template_preview.yaml#/job_template_preview"
1212
locale:
13-
"$ref": "./locale_preview.yaml#/locale_preview"
13+
"$ref": "./locale_preview_global.yaml#/locale_preview_global"
1414
users:
1515
type: array
1616
items:

schemas/locale_preview_global.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
locale_preview_global:
3+
type: object
4+
title: locale_preview_global
5+
properties:
6+
id:
7+
type: string
8+
nullable: true
9+
description: The ID of the locale. Global Job Templates will return `null` here.
10+
name:
11+
type: string
12+
code:
13+
type: string
14+
example:
15+
id: abcd1234cdef1234abcd1234cdef1234
16+
name: English
17+
code: en-GB

0 commit comments

Comments
 (0)