Skip to content

Commit

Permalink
v1.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zeplin-dev committed Mar 27, 2024
1 parent 93d196d commit f3f05bc
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 4 deletions.
66 changes: 64 additions & 2 deletions descriptions/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "Zeplin API",
"description": "Access your resources in Zeplin",
"version": "1.18.0",
"version": "1.19.0",
"contact": {
"name": "Zeplin",
"url": "https://zeplin.io",
Expand Down Expand Up @@ -2000,7 +2000,7 @@
"$ref": "#/components/responses/projectOrScreenNotFound"
},
"422": {
"$ref": "#/components/responses/notAProjectMemberOrArchived"
"$ref": "#/components/responses/notAProjectMemberOrArchivedOrTagIsLocked"
}
}
}
Expand Down Expand Up @@ -6407,6 +6407,10 @@
"source": {
"$ref": "#/components/schemas/ResourceSource",
"description": "Source of the color–either `project` or `styleguide`."
},
"variable_info": {
"$ref": "#/components/schemas/VariableInfo",
"description": "Variable info of the color"
}
},
"example": {
Expand Down Expand Up @@ -11671,6 +11675,27 @@
"$ref": "#/components/examples/flowBoardNodeColor"
}
},
"VariableInfo": {
"title": "Variable Info",
"type": "object",
"required": [
"source_id",
"collection_source_id"
],
"properties": {
"source_id": {
"type": "string",
"description": "The source id of the variable"
},
"collection_source_id": {
"type": "string",
"description": "The source id of the collection that the variable belongs to"
}
},
"example": {
"$ref": "#/components/examples/variableInfo"
}
},
"WebhookEvent": {
"title": "Webhook Event",
"discriminator": {
Expand Down Expand Up @@ -16483,6 +16508,9 @@
"g": 152,
"b": 5,
"a": 1,
"variable_info": {
"$ref": "#/components/examples/variableInfo/value"
},
"source": {
"$ref": "#/components/examples/resourceSourceForProject/value"
}
Expand Down Expand Up @@ -18076,6 +18104,13 @@
"last_seen": 1616739240
}
},
"variableInfo": {
"summary": "Variable Info",
"value": {
"source_id": "280c52e619f9c84a4e5e265bb746ede50d898cb3",
"collection_source_id": "4af2ee68305a9b4f0c655141e7ba01a51ab61bde"
}
},
"versionCommit": {
"summary": "Version Commit",
"value": {
Expand Down Expand Up @@ -19259,6 +19294,33 @@
}
}
},
"notAProjectMemberOrArchivedOrTagIsLocked": {
"description": "Not a project member or project archived or tag is locked",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
},
"examples": {
"Not a member": {
"value": {
"message": "User is not a member of the project"
}
},
"Project is archived": {
"value": {
"message": "Project is archived"
}
},
"Tag is locked": {
"value": {
"message": "Tag is locked"
}
}
}
}
}
},
"notAProjectMemberOrArchivedOrScreenExists": {
"description": "Not a project member or project archived or screen with name already exists",
"content": {
Expand Down
45 changes: 43 additions & 2 deletions descriptions/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.2
info:
title: Zeplin API
description: Access your resources in Zeplin
version: 1.18.0
version: 1.19.0
contact:
name: Zeplin
url: https://zeplin.io
Expand Down Expand Up @@ -1263,7 +1263,7 @@ paths:
"404":
$ref: "#/components/responses/projectOrScreenNotFound"
"422":
$ref: "#/components/responses/notAProjectMemberOrArchived"
$ref: "#/components/responses/notAProjectMemberOrArchivedOrTagIsLocked"
"/v1/projects/{project_id}/screens/{screen_id}/components":
get:
tags:
Expand Down Expand Up @@ -3895,6 +3895,9 @@ components:
source:
$ref: "#/components/schemas/ResourceSource"
description: Source of the color–either `project` or `styleguide`.
variable_info:
$ref: "#/components/schemas/VariableInfo"
description: Variable info of the color
example:
$ref: "#/components/examples/color"
ColorData:
Expand Down Expand Up @@ -7904,6 +7907,21 @@ components:
description: Alpha component of the color
example:
$ref: "#/components/examples/flowBoardNodeColor"
VariableInfo:
title: Variable Info
type: object
required:
- source_id
- collection_source_id
properties:
source_id:
type: string
description: The source id of the variable
collection_source_id:
type: string
description: The source id of the collection that the variable belongs to
example:
$ref: "#/components/examples/variableInfo"
WebhookEvent:
title: Webhook Event
discriminator:
Expand Down Expand Up @@ -11254,6 +11272,8 @@ components:
g: 152
b: 5
a: 1
variable_info:
$ref: "#/components/examples/variableInfo/value"
source:
$ref: "#/components/examples/resourceSourceForProject/value"
colorData:
Expand Down Expand Up @@ -12380,6 +12400,11 @@ components:
emotar: 🍎
avatar: http://placekitten.com/200/300
last_seen: 1616739240
variableInfo:
summary: Variable Info
value:
source_id: 280c52e619f9c84a4e5e265bb746ede50d898cb3
collection_source_id: 4af2ee68305a9b4f0c655141e7ba01a51ab61bde
versionCommit:
summary: Version Commit
value:
Expand Down Expand Up @@ -13211,6 +13236,22 @@ components:
Project is archived:
value:
message: Project is archived
notAProjectMemberOrArchivedOrTagIsLocked:
description: Not a project member or project archived or tag is locked
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
examples:
Not a member:
value:
message: User is not a member of the project
Project is archived:
value:
message: Project is archived
Tag is locked:
value:
message: Tag is locked
notAProjectMemberOrArchivedOrScreenExists:
description: Not a project member or project archived or screen with name
already exists
Expand Down

0 comments on commit f3f05bc

Please sign in to comment.