Live data from Hacker News

Scalar: Generate interactive API documentations from Swagger files

github.com

61–70 of 74 posts

Re: Scalar: Generate interactive API documentations from Swagger files

#62
post #59

Isn't swagger deprecated for like a decade? It looks like it supports OpenAPI, but interesting to focus on Swagger

We support Swagger + OAS 3/3.1

The language can be better throughout the repo so we will update that :) appreciate the comment

Re: Scalar: Generate interactive API documentations from Swagger files

#63
post #23
post #14

Earlier quoted context omitted.

That's what I meant by "interactive features using JavaScript layered over the top" - you can still have the embedded REST API client behaving exactly the same, but if you load the page without JavaScript (e.g. a search engine crawler) you get the rest of the content as HTML. Great point about feeding the Swagger files straight into the LLM.

> Great point about feeding the Swagger files straight into the LLM. That doesn't scale though. Notion OpenAPI doc is more than 6k lines. You will have to resort to some splitting techniques or using vector stores

... or you can use Claude with it's 100,000 token limit. I've had some very impressive results from Claude against long documents.

Re: Scalar: Generate interactive API documentations from Swagger files

#65
post #59

Isn't swagger deprecated for like a decade? It looks like it supports OpenAPI, but interesting to focus on Swagger

We support Swagger + OAS 3/3.1 The language can be better throughout the repo so we will update that :) appreciate the comment

Yeah my perception of this is Swagger is old OpenAPI, so I would probably put OpenAPI front and center and just note that you also support Swagger?

Re: Scalar: Generate interactive API documentations from Swagger files

#66

Will /token oauth bearer authentication be added anytime soon?

yes! it's on our list of things to add this week, appreciate the comment :)

We just shipped adding headers + params interactive so people can add `x-api-key`

https://github.com/scalar/scalar/pull/237

Re: Scalar: Generate interactive API documentations from Swagger files

#67
post #4

Aren't Redocly and Swagger UI open-source too?

There's Widdershins plus Slate too. Widdershins turns the OpenAPI specs into markdown, then Slate into HTML. The results look really nice, and the use of templates means it's easy to customise. I'm just finishing my first project with them now, and I'd happily use them again.

Re: Scalar: Generate interactive API documentations from Swagger files

#69

Earlier quoted context omitted.

After some more experimentation it looks like you don't support allOf/anyOf/oneOf which seems like a pretty big hole.

our swagger parser isnt perfect yet, appreciate this comment and I added it to triage. We will get this fixed quick

Swagger or OpenAPI parser?

Re: Scalar: Generate interactive API documentations from Swagger files

#70

Earlier quoted context omitted.

our swagger parser isnt perfect yet, appreciate this comment and I added it to triage. We will get this fixed quick

Swagger or OpenAPI parser?

Swagger + OpenAPI v3/v3.1 parser, sorry I needed more coffee was up way too late this week with launch

Will update the README to make this more clear

Post reply on HN