Skip to content

[Python][Flask] Add models support to Flask Connexion codegen#4178

Merged
wing328 merged 1 commit intoswagger-api:masterfrom
cbornet:flask
Nov 18, 2016
Merged

[Python][Flask] Add models support to Flask Connexion codegen#4178
wing328 merged 1 commit intoswagger-api:masterfrom
cbornet:flask

Conversation

@cbornet
Copy link
Copy Markdown
Contributor

@cbornet cbornet commented Nov 13, 2016

  • Generates the models with type hints (using typing which becomes a dependency in py2)
  • Adds docstring and type hints in controllers
  • Generate calls to deserialize functions in controllers when appropriate
  • Adds the 'items' CodegenProperty to CodegenParameter when the CodegenParameter is an array or a map (needed by this PR to get the isString, isInteger, isXXX... attributes of the boxed type)

@cbornet
Copy link
Copy Markdown
Contributor Author

cbornet commented Nov 13, 2016

Note for later : the Python and Flask codegen common methods should be mutualized in an AbstractPythonCodegen class.

@wing328 wing328 merged commit 3d476de into swagger-api:master Nov 18, 2016
@cbornet cbornet deleted the flask branch November 18, 2016 13:29
@wing328 wing328 changed the title [Flask] Add models support to Flask Connexion codegen [Python][Flask] Add models support to Flask Connexion codegen Feb 20, 2017
davidgri pushed a commit to davidgri/swagger-codegen that referenced this pull request May 11, 2017
[Flask] Add models support to Flask Connexion codegen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants