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

Fails to parse Figma api #975

Open
Niedzwiedzw opened this issue Nov 22, 2024 · 1 comment
Open

Fails to parse Figma api #975

Niedzwiedzw opened this issue Nov 22, 2024 · 1 comment

Comments

@Niedzwiedzw
Copy link

Niedzwiedzw commented Nov 22, 2024

https://github.com/figma/rest-api-spec/blob/main/openapi/openapi.yaml

error:

components.schemas: data did not match any variant of untagged enum ReferenceOr at line 2586 column 5

I think this is due to the fact that enum variants are integers and it expects strings. I've tried parsing it with oas3 crate and it works but only on latest master

@ahl
Copy link
Collaborator

ahl commented Nov 22, 2024

The Figma document is OpenAPI v3.1... which we don't yet support.

  1. this is a good reminder to build support!
  2. At a minimum, we should look at the version number before trying to deserialize

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants