swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
The attached Json file is generated using the WP API SwaggerUI plugin on an empty Wordpress installation. Any use of the cli for java code, e.g.
java -jar swagger-codegen-cli-3.0.11.jar generate -i ../../wordpressv2/schema.json -l java -o ../../wordpressv2 --model-package ch.performancebuildings.wp.v2.model --api-package ch.performancebuildings.wp.v2.api --invoker-package ch.performancebuildings.wp.v2.invoker --group-id ch.performancebuildings.wp.v2 --artifact-version 3.22.0
creates an EndpointApi.java class with duplicate methods. Same with e.g. version 2.4.8 produces a correkt syntax.
The attached Json file is generated using the WP API SwaggerUI plugin on an empty Wordpress installation. Any use of the cli for java code, e.g.
java -jar swagger-codegen-cli-3.0.11.jar generate -i ../../wordpressv2/schema.json -l java -o ../../wordpressv2 --model-package ch.performancebuildings.wp.v2.model --api-package ch.performancebuildings.wp.v2.api --invoker-package ch.performancebuildings.wp.v2.invoker --group-id ch.performancebuildings.wp.v2 --artifact-version 3.22.0
creates an EndpointApi.java class with duplicate methods. Same with e.g. version 2.4.8 produces a correkt syntax.