You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you generate code for python-flask using a spec file that contains a definition for an object called "File", swagger-codegen never creates the corresponding model file module and imports java.io.File into the generated default_controller.py.
Swagger-codegen version
2.3.1
Swagger declaration file content or url
swagger: "2.0"
info:
version: 0.0.1
title: Blah API
description: An API for interacting with the blah system
paths:
/files:
get:
description: Retrieves information on files that match the specified criteria
produces:
- "application/json"
parameters:
- name: tags
type: array
description: The tags for which matching files are to be returned
in: query
items:
type: string
responses:
'200':
description: Successful response
schema:
type: array
items:
$ref: "#/definitions/File"
Description
If you generate code for python-flask using a spec file that contains a definition for an object called "File", swagger-codegen never creates the corresponding model file module and imports java.io.File into the generated default_controller.py.
Swagger-codegen version
2.3.1
Swagger declaration file content or url
swagger: "2.0"
info:
version: 0.0.1
title: Blah API
description: An API for interacting with the blah system
paths:
/files:
definitions:
File:
type: object
properties:
file_id:
type: "string"
format: "uuid"
path:
type: "string"
tags:
type: array
items:
type: "string"
Command line used for generation
java -jar /home/sknick/Misc/swagger-codegen-cli-2.3.1.jar generate -l python-flask -o ./Source -i ./api.yaml
Steps to reproduce
(Shown above.)
Related issues/PRs
Not sure.
Suggest a fix/enhancement
No idea.
The text was updated successfully, but these errors were encountered: