From 24a636a853b460aee30a231fcb1f2a3dc57a0399 Mon Sep 17 00:00:00 2001 From: Don Olmstead Date: Tue, 16 Sep 2025 13:10:02 -0700 Subject: [PATCH] add LinkAccess definition An enumeration for a `link_access` property is defined multiple times with the same values. Move the definition the `schemas` and share it. --- openapi/openapi.yaml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index bb0b0b2..c6dc198 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -6487,6 +6487,15 @@ components: - id - handle - img_url + LinkAccess: + type: string + enum: + - view + - edit + - org_view + - org_edit + - inherit + description: Access policy for users who have the link to the resource. FrameInfo: type: object description: Data on the frame a component resides in. @@ -7214,14 +7223,8 @@ components: - figma - figjam link_access: - type: string + $ref: "#/components/schemas/LinkAccess" description: Access policy for users who have the link to the file. - enum: - - view - - edit - - org_view - - org_edit - - inherit proto_link_access: type: string description: Access policy for users who have the link to the file's prototype. @@ -8806,13 +8809,7 @@ components: description: The role of the user making the API request in relation to the file. link_access: - type: string - enum: - - view - - edit - - org_view - - org_edit - - inherit + $ref: "#/components/schemas/LinkAccess" description: Access policy for users who have the link to the file. url: type: string