bootprint / bootprint-openapi

Bootprint-module to render OpenAPI specifications, this repository has moved to https://github.com/bootprint/bootprint-monorepo/tree/master/packages/bootprint-openapi
MIT License
357 stars 48 forks source link

Generated HTML page looks nothing like example #97

Closed tomrep closed 6 years ago

tomrep commented 6 years ago

Hi,

I'm trying to generate HTML for my swagger.json, but the page generated looks nothing like what I see in example. I also tried generating HTML from example json, but it still looks like styles are missing.

$ bootprint openapi http://petstore.swagger.io/v2/swagger.json target Loading bootprint-openapi 1.1.0 Loading bootprint-json-schema 1.1.0 Loading bootprint-base 1.1.0 [ 'target/index.html', 'target/main.css', 'target/main.css.map', 'target/bundle.js', 'target/bundle.js.map' ]

this is what I see in console log But result looks like this:

screen shot 2018-08-08 at 08 15 46 screen shot 2018-08-08 at 08 16 06
nknapp commented 6 years ago

Which example do you mean? I mean: What is the example that looks different from your output? As far as I can see, the output looks good.

tomrep commented 6 years ago

I was expecting styles and functionality that is shown here : http://petstore.swagger.io/ , but maybe I just misunderstood what the module does

nknapp commented 6 years ago

Bootprint was meant more for a printable documentation, although I think no spec ever got printed. But the goal was to generate docs that can be watched in the browser and send it to someone.

What you are looking for is swagger-ui, I believe.