Hacker News new | ask | show | jobs
by codegladiator 1377 days ago
>> Paste the URL of an OpenAPI spec below, and we'll show you example code for calling any of your APIs.

> Paste a URL containing a OpenAPI yaml file...

>> JSON.parse: unexpected character at line 1 column 1 of the JSON data

YAML or JSON ?

1 comments

To clarify, the JSON parse error was data coming down from the server. The code generator accepts either a JSON or a YAML OpenAPI document.

I was looking at the server logs - are you the payments company with abbreviation CP? It looks like there are a few errors in your OpenAPI doc that prevented the generator for working in your case - I'm sorry the error message wasn't more clear.

If you're interested, email me, kurt at libninja dot com, and I can describe the spec issues and we can chat about working together.