Skip to content

[BUG] openapi-generator-cli author template cant extract jaxrs-spec templates #9528

@sonic-martin

Description

@sonic-martin

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

Via openapi-generator-cli author template it is not possible to extract jaxrs-spec templates.

openapi-generator version

5.1.1

OpenAPI declaration file content or url

None

Generation Details
openapi-generator-cli author template --verbose  -g jaxrs-spec --library quarkus

[main] INFO  o.o.codegen.cmd.AuthorTemplate - Requesting 'jaxrs-spec' from embedded resource directory 'JavaJaxRS\spec'
Exception in thread "main" java.lang.NullPointerException
        at java.base/java.util.Objects.requireNonNull(Objects.java:221)
        at org.openapitools.codegen.cmd.AuthorTemplate.execute(AuthorTemplate.java:54)
        at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32)
        at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66)

Steps to reproduce
openapi-generator-cli author template -g jaxrs-spec --library quarkus
Related issues/PRs

Non found

Suggest a fix

I assume, it is intended that extracting also works for the jaxrs-spec generator.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions