Skip to content

Commit

Permalink
feat: Add linked-parent to translation details (#570)
Browse files Browse the repository at this point in the history
* Add linked-parent to translation details

* Undo go.sum changes
  • Loading branch information
BlumMichael authored Apr 19, 2024
1 parent ee24ccb commit 2c6f432
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
16 changes: 16 additions & 0 deletions doc/compiled.json
Original file line number Diff line number Diff line change
Expand Up @@ -2339,6 +2339,22 @@
},
"word_count": {
"type": "integer"
},
"linked_translation": {
"type": "object",
"title": "translation_parent",
"properties": {
"id": {
"type": "string"
},
"content": {
"type": "string"
}
},
"example": {
"id": "abcd1234cdef1234abcd1234cdef1234",
"content": "My parent translation"
}
}
},
"example": {
Expand Down
2 changes: 2 additions & 0 deletions schemas/translation_details.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ translation_details:
"$ref": "./user_preview.yaml#/user_preview"
word_count:
type: integer
linked_translation:
"$ref": "./translation_parent.yaml#/translation_parent"
example:
user:
id: abcd1234cdef1234abcd1234cdef1234
Expand Down
12 changes: 12 additions & 0 deletions schemas/translation_parent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
translation_parent:
type: object
title: translation_parent
properties:
id:
type: string
content:
type: string
example:
id: abcd1234cdef1234abcd1234cdef1234
content: My parent translation

0 comments on commit 2c6f432

Please sign in to comment.