Skip to content

Commit

Permalink
add projects to custom metadata label schema
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshchang committed Nov 30, 2023
1 parent 033db1c commit da0c66c
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 58 deletions.
125 changes: 67 additions & 58 deletions doc/compiled.json
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,72 @@
}
}
},
"custom_metadata_label": {
"type": "object",
"title": "custom_metadata_label",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"data_type": {
"type": "string",
"enum": [
"boolean",
"date",
"link",
"multi_select",
"number",
"single_select",
"text"
]
},
"user": {
"$ref": "#/components/schemas/user_preview"
},
"projects": {
"type": "array",
"items": {
"$ref": "#/components/schemas/project_short"
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"example": {
"id": "abcd1234cdef1234abcd1234cdef1234",
"name": "Character Age",
"description": "Age of character in seconds",
"data_type": "Text value",
"user": {
"id": "abcd1234cdef1234abcd1234cdef1234",
"username": "joe.doe",
"name": "Joe Doe"
},
"created_at": "2015-01-28T09:52:53Z",
"updated_at": "2015-01-28T09:52:53Z",
"projects": [
{
"id": "abcd1234cdef1234abcd1234cdef1234",
"name": "My Android Project",
"main_format": "xml",
"created_at": "2015-01-28T09:52:53Z",
"updated_at": "2015-01-28T09:52:53Z"
}
]
}
},
"key_preview": {
"type": "object",
"title": "key_preview",
Expand Down Expand Up @@ -6058,64 +6124,7 @@
"schema": {
"type": "array",
"items": {
"type": "object",
"title": "custom_metadata_label",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"data_type": {
"type": "string",
"enum": [
"boolean",
"date",
"link",
"multi_select",
"number",
"single_select",
"text"
]
},
"user": {
"$ref": "#/components/schemas/user_preview"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"example": {
"id": "abcd1234cdef1234abcd1234cdef1234",
"name": "Character Age",
"description": "Age of character in seconds",
"data_type": "Text value",
"user": {
"id": "abcd1234cdef1234abcd1234cdef1234",
"username": "joe.doe",
"name": "Joe Doe"
},
"account": {
"id": "abcd1234",
"name": "Company Account",
"slug": "company_account",
"company": "My Awesome Company",
"created_at": "2015-01-28T09:52:53Z",
"updated_at": "2015-01-28T09:52:53Z",
"company_logo_url": "http://assets.example.com/company_logo.png"
},
"created_at": "2015-01-28T09:52:53Z",
"updated_at": "2015-01-28T09:52:53Z"
}
"$ref": "#/components/schemas/custom_metadata_label"
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ schemas:
"$ref": schemas/comment.yaml#/comment
comment_reaction:
"$ref": schemas/comment_reaction.yaml#/comment_reaction
custom_metadata_label:
"$ref": schemas/custom_metadata_label.yaml#/custom_metadata_label
key_preview:
"$ref": schemas/key_preview.yaml#/key_preview
affected_count:
Expand Down
10 changes: 10 additions & 0 deletions schemas/custom_metadata_label.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ custom_metadata_label:
- text
user:
"$ref": "./user_preview.yaml#/user_preview"
projects:
type: array
items:
"$ref": "./project_short.yaml#/project_short"
created_at:
type: string
format: date-time
Expand All @@ -38,3 +42,9 @@ custom_metadata_label:
name: Joe Doe
created_at: '2015-01-28T09:52:53Z'
updated_at: '2015-01-28T09:52:53Z'
projects:
- id: abcd1234cdef1234abcd1234cdef1234
name: My Android Project
main_format: xml
created_at: '2015-01-28T09:52:53Z'
updated_at: '2015-01-28T09:52:53Z'

0 comments on commit da0c66c

Please sign in to comment.