diff --git a/api/schemas/extras.yaml b/api/schemas/extras.yaml index 97844441..8bee08d7 100644 --- a/api/schemas/extras.yaml +++ b/api/schemas/extras.yaml @@ -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: @@ -111,4 +120,7 @@ properties: - $ref: "#/$defs/source_model" strings: type: object - # /\w{2}/: translation: {} \ No newline at end of file + additionalProperties: False + patternProperties: + "^\\w\\w$": + $ref: "#/$defs/translation" \ No newline at end of file