Burgyn / MMLib.SwaggerForOcelot

This repo contains swagger extension for ocelot.
MIT License
353 stars 94 forks source link

no operations defined in spec after upgrading to Version 2.3.0 #110

Closed luccasmf closed 4 years ago

luccasmf commented 4 years ago

I'm using the ocelot as a gateway for 4 apis,

Everything was working fine, but, since I updated the SwaggerForOcelot version to 2.3.0, it is being shown that my APIs doesn't have definitions for operation. But, when I rolled back to the version 1.10.5 everything became functional again.

I'm trying to update Ocelot to 1.6.0.1 and already have changed "ReRoutes" to "Routes" on the ocelot.json file, but then I can't test it since doesn't appear on Swagger

Does someone know how to deal with it ?

gromilQaaaa commented 4 years ago

Don't forget to set SwaggerKey for each service

luccasmf commented 4 years ago

Don't forget to set SwaggerKey for each service

image

But I'm using it already

Burgyn commented 4 years ago

Hi.

version from 2.0.0 references Ocelot 16.0.1 which have breaking change (rename ReRoute to Route). This package support this changes.

If you have still problem with version 2.5.0, than please provide ocelot.json configuration and sample of your downstream swagger.json.

Thanks.

luccasmf commented 4 years ago

@Burgyn I'll try the 2.5 version to check,

With the 2.3 I'd tried the Ocelot 16.0.1, calling the endpoints was working, but The swagger part was not showing information. Thanks for now

luccasmf commented 4 years ago

@Burgyn with the 2.5.0 it's working now, thanks for the update, I'll Close the incident

Burgyn commented 4 years ago

I'm glad to hear