Skip to content

Commit

Permalink
fix(api): attempt to validate extra translation strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Mar 5, 2023
1 parent 344d17a commit b198b3b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion api/schemas/extras.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ $defs:
source:
type: string

translation:
type: object
additionalProperties: False
patternProperties:
"(\\w|\\.|-)+":
oneOf:
- type: string
- $ref: "#/$defs/translation"

type: object
additionalProperties: False
properties:
Expand Down Expand Up @@ -111,4 +120,7 @@ properties:
- $ref: "#/$defs/source_model"
strings:
type: object
# /\w{2}/: translation: {}
additionalProperties: False
patternProperties:
"^\\w\\w$":
$ref: "#/$defs/translation"

0 comments on commit b198b3b

Please sign in to comment.