rametta / rapini

:leafy_green: OpenAPI to React Query (or SWR) & Axios
Apache License 2.0
152 stars 18 forks source link

Support `JSON+LD` API format #50

Closed TheoD02 closed 4 months ago

TheoD02 commented 6 months ago

Hello!

I wanted to run a test on our package and noticed that it lacks support for JSON-LD 😞.

I've been following the format provided by API Platform.

Since I'm not very familiar with TypeScript, I'd appreciate it if someone could review this initial approach: Comparison Link

The change specifically focuses on surrounding type with quotes

rametta commented 6 months ago

Hey @TheoD02, thanks for opening the issue. I'm not familiar with JSON-LD, but I took a look at the PR and I imagine that if we decide to support that then it would be behind a flag in the CLI tool. Feel free to open a PR to us with the CLI flag and the changes and I'll take a look. Thanks!