1
0
Fork 0

fix(api): attempt to validate extra translation strings

This commit is contained in:
Sean Sube 2023-03-05 07:53:23 -06:00
parent 344d17a7b1
commit b198b3baff
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 13 additions and 1 deletions

View File

@ -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"