fix(api): attempt to validate extra translation strings
This commit is contained in:
parent
344d17a7b1
commit
b198b3baff
|
@ -82,6 +82,15 @@ $defs:
|
||||||
source:
|
source:
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
translation:
|
||||||
|
type: object
|
||||||
|
additionalProperties: False
|
||||||
|
patternProperties:
|
||||||
|
"(\\w|\\.|-)+":
|
||||||
|
oneOf:
|
||||||
|
- type: string
|
||||||
|
- $ref: "#/$defs/translation"
|
||||||
|
|
||||||
type: object
|
type: object
|
||||||
additionalProperties: False
|
additionalProperties: False
|
||||||
properties:
|
properties:
|
||||||
|
@ -111,4 +120,7 @@ properties:
|
||||||
- $ref: "#/$defs/source_model"
|
- $ref: "#/$defs/source_model"
|
||||||
strings:
|
strings:
|
||||||
type: object
|
type: object
|
||||||
# /\w{2}/: translation: {}
|
additionalProperties: False
|
||||||
|
patternProperties:
|
||||||
|
"^\\w\\w$":
|
||||||
|
$ref: "#/$defs/translation"
|
Loading…
Reference in New Issue