Re:Everything old is new again: Microservices
by throwaway2016a on Wednesday May 09, 2018 @12:34PM
(#17031244)
Those are code generators. The code they generate is for the computer. The spec is still an abstraction layer designed for humans.
I am not aware of any code generators that read the swagger file every single API call and use that as if it were the code.
Re:Everything old is new again: Microservices
by scarface74 on Thursday May 10, 2018 @03:54PM
(#17042399)
How is that any different than a WSDL? A WSDL could also be said to be designed for humans -- it's just XML -- but there are code generators for it too.
For one, Swagger is for humans not machines to consume. At it's core it is a way to standardize documentation that can be easily displayed to humans.
c# - https://github.com/Azure/autorest
Java - https://github.com/swagger-api/swagger-parser/blob/master/RE...
And basically everything else.
https://github.com/swagger-api/swagger-codegen/blob/master/R...