Skip to content

swagger-to 3.0.0

Choose a tag to compare

@mristin mristin released this 23 Dec 08:22
· 90 commits to master since this release
a480caa

The major change is:

  • Made all functions protected in the modules responsible for code generation.

    This impacts only the users which used swagger-to as a library. This change does not affect users which use
    swagger-to only as CLI.

The minor changes are:

  • Rewritten go-server and py-client generation with jinja2 template engine.

    The generated code is semantically equal to the previous version, but a bit more readable and easier to diff
    since we enforce now the line width of 100 columns and split argument lists into multiple lines.

  • swagger-to-py-client includes a response description in the docstring of the request function.

  • Refactored tests into a hierarchy of test case directories

  • Added test cases with files, empty objects and objects with optional fields to swagger-to-py-client and go-server.