Skip to content

Implement documentationLinks validation to match Figma API #5

Open
@svallory

Description

@svallory

Original issue: react-figma#29

Simulate Error: in set_documentationLinks: Documentation links API takes a list of size 0 or 1

Assigning array with more than one elements documentationLinks throws an error:

Error: in set_documentationLinks: Documentation links API takes a list of size 0 or 1

How it should work?

API Doc: https://www.figma.com/plugin-docs/api/properties/nodes-documentationlinks/

Signature

documentationLinks: ReadonlyArray<DocumentationLink>

Remarks

This API currently only supports setting a single documentation link. To clear the documentation links, set to the empty list [].

NOTES

The error message may have changed (issue is from May 2021)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions