Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(API): Add source last updated at information on job details #777

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/compiled.json
Original file line number Diff line number Diff line change
Expand Up @@ -3057,6 +3057,10 @@
"job_tag_name": {
"type": "string"
},
"source_translations_updated_at": {
"type": "string",
"format": "date-time"
},
"source_locale": {
"$ref": "#/components/schemas/locale_preview"
},
Expand All @@ -3080,6 +3084,7 @@
"name": "Joe Doe"
},
"job_tag_name": "Job_123",
"source_translations_updated_at": "2020-01-01T00:00:00Z",
"source_locale": {
"id": "abcd1234cdef1234abcd1234cdef1235",
"name": "de-DE",
Expand Down
73 changes: 38 additions & 35 deletions schemas/job_details.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1,41 @@
---
job_details:
allOf:
- "$ref": "./job.yaml#/job"
- type: object
title: job_details
properties:
owner:
"$ref": "./user_preview.yaml#/user_preview"
job_tag_name:
type: string
source_locale:
"$ref": "./locale_preview.yaml#/locale_preview"
locales:
type: array
items:
- "$ref": "./job.yaml#/job"
- type: object
title: job_details
properties:
owner:
"$ref": "./user_preview.yaml#/user_preview"
job_tag_name:
type: string
source_translations_updated_at:
type: string
format: date-time
source_locale:
"$ref": "./locale_preview.yaml#/locale_preview"
keys:
type: array
items:
"$ref": "./key_preview.yaml#/key_preview"
example:
owner:
id: abcd1234cdef1234abcd1234cdef1234
username: joe.doe
name: Joe Doe
job_tag_name: Job_123
source_locale:
id: abcd1234cdef1234abcd1234cdef1235
name: de-DE
code: de-DE
locales:
- id: abcd1234cdef1234abcd1234cdef1234
name: English
code: en-GB
keys:
- id: dbcd1234cdef1234abcd1234cdef1234
name: greeting.hello
locales:
type: array
items:
"$ref": "./locale_preview.yaml#/locale_preview"
keys:
type: array
items:
"$ref": "./key_preview.yaml#/key_preview"
example:
owner:
id: abcd1234cdef1234abcd1234cdef1234
username: joe.doe
name: Joe Doe
job_tag_name: Job_123
source_translations_updated_at: '2020-01-01T00:00:00Z'
source_locale:
id: abcd1234cdef1234abcd1234cdef1235
name: de-DE
code: de-DE
locales:
- id: abcd1234cdef1234abcd1234cdef1234
name: English
code: en-GB
keys:
- id: dbcd1234cdef1234abcd1234cdef1234
name: greeting.hello
Loading