Skip to content

Commit 2cf8e4a

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

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

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)