-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Closed
Labels
Milestone
Description
Description
Issue with Python and Ada, when using a Specification OpenAPI 2.0. Potentially, with the rest of the generators. The generator does not produce all the object classes used in the compiler.
openapi-generator version
Current master (3.0.1, I think)
OpenAPI declaration file content or url
swagger: '2.0'
info:
version: 1.0.0
host: 127.0.0.1:8442
basePath: "/queryService"
consumes:
- application/json
produces:
- application/json
paths:
/query:
put:
operationId: query
consumes:
- multipart/form-data
parameters:
- name: serviceQueryForm
in: body
schema:
$ref: '#/definitions/stringsMap'
responses:
default:
description: Unexpected error
definitions:
stringsMap:
type: "object"
properties:
entry:
type: array
items:
type: object
properties:
key:
type: string
value:
type: stringCommand line used for generation
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -o ../openapi2BAD/ -i ../openapi2problem.yml --model-package Arrowhead2 --additional-properties projectName=Arrowhead1 -g python
or
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -o ../openapi2BAD/ -i ../openapi2problem.yml --model-package Arrowhead2 --additional-properties projectName=Arrowhead1 -g python
Steps to reproduce
cd openapi2BAD/ && mkdir bin && gprbuild -P arrowhead1.gpr
Related issues/PRs
Suggest a fix/enhancement
Reactions are currently unavailable