jonluca / har-to-openapi

HAR to OpenAPI spec generator
87 stars 10 forks source link

Server is not pushed into YAML spec #13

Closed nullfox closed 4 hours ago

nullfox commented 4 hours ago

It looks like YAML is dumped before the server prefix and domain are resolved and assigned into spec.servers array. This ends up with the spec object has servers but yamlSpec does not.

Moving the definition of yamlSpec down below the server handling code at around line 300 in index.ts

jonluca commented 4 hours ago

Fixed, thanks for pointing this out