Swagger codegen of the v2 api

konetzed

Dabbler
Joined
Aug 16, 2018
Messages
20
Has anyone been successful in generating a working client sdk using swagger or openapi generator cli tools?

I have generated python libs using openapi-generator-cli.jar version 3.3.4 but none of my functions return anything. I have found this is because the return_type is set to 'None' for all functions when making api calls.

I have generated the libs using cmd "java -jar openapi-generator-cli.jar generate -g python -i http://hostnamer/api/v2.0/ -o ixsystems"
 

rmblr

Dabbler
Joined
Jul 16, 2019
Messages
13
I'm also having this issue.

Using the online editor: https://editor.swagger.io/ there are lots of errors mostly due to missing request bodies.


Code:
Semantic error at paths./group/id/{id}.delete.requestBody
DELETE operations cannot have a requestBody.
Jump to line 315
Semantic error at paths./user/id/{id}.delete.requestBody
DELETE operations cannot have a requestBody.
Jump to line 497
Semantic error at paths./certificate/id/{id}.delete.requestBody
DELETE operations cannot have a requestBody.
Jump to line 2891
Semantic error at paths./iscsi/extent/id/{id}.delete.requestBody
DELETE operations cannot have a requestBody.
Jump to line 5706
Semantic error at paths./iscsi/target/id/{id}.delete.requestBody
DELETE operations cannot have a requestBody.
Jump to line 5858
Semantic error at paths./iscsi/targetextent/id/{id}.delete.requestBody
DELETE operations cannot have a requestBody.
Jump to line 5987
Semantic error at paths./jail/id/{id}.delete.requestBody
DELETE operations cannot have a requestBody.
Jump to line 6114
Semantic error at paths./keychaincredential/id/{id}.delete.requestBody
DELETE operations cannot have a requestBody.
Jump to line 7059
Semantic error at paths./pool/dataset/id/{id}.delete.requestBody
DELETE operations cannot have a requestBody.
Jump to line 8553
Semantic error at paths./vm/device/id/{id}.delete.requestBody
DELETE operations cannot have a requestBody.
Jump to line 12399
Semantic error at paths./zfs/snapshot/id/{id}.delete.requestBody
DELETE operations cannot have a requestBody.
Jump to line 13447
 
 
Top