Skip to content

3.0.0 server-code generation always failing due to missing /<backend>/model.mustache #7622

Closed
@asnowfix

Description

@asnowfix
Description

I am trying to generate server-side code out of a open api 3.0 specification. I tried the 2 backends that seems to be available in 3.0.0-rc0 (jaxrs & nodejs-server), with the same output error pattern: a missing Mustache.io file.

Caused by: java.io.FileNotFoundException: /JavaJaxRS/model.mustache
Swagger-codegen version

I am using 3.0.0-rc0 downloaded using wget. This is not a regression, as far as I can tell.

Swagger declaration file content or url

https://github.com/openservicebrokerapi/servicebroker/blob/master/openapi.yaml

Command line used for generation
java -jar swagger-codegen-cli.jar generate --lang=jaxrs --output=. --input-spec=api/openapi.yaml --group-id=com.hp.gdrs --artifact-id=aws-cf-service-broker --api-package=com.
hp.gdrs.osb.api --model-package=com.hp.gdrs.osb.model
Steps to reproduce
  1. Download the Open Service Broker specification as YAML
  2. Run swagger-codegen on the above YAML
Related issues/PRs

Related issue might be completion of the support of OpenAPI 3.0 support in #6598

Suggest a fix/enhancement

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions