Skip to content

Comment on Show HN: Stripe-quality API client libraries with a single button click

Comments

> 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 ?

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.