Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQ][spring] Feature x-implements is not supported #11636

Closed
jorgerod opened this issue Feb 17, 2022 · 1 comment
Closed

[REQ][spring] Feature x-implements is not supported #11636

jorgerod opened this issue Feb 17, 2022 · 1 comment

Comments

@jorgerod
Copy link
Contributor

Is your feature request related to a problem? Please describe.

x-implements extension is not supported for spring server (for the different java clients it is supported).

OpenAPI declaration file content or url
openapi: 3.0.0
components:
  schemas:
    MyDtoImpl:
      type: object
      description: To be override with the schema id
      x-implements: ['org.data.MyDto']
      properties:
        data:
          description: Data compliant with the schema defined at the description field
          type: object

x-implements is not taken into account

Expected generation
public class MyDtoImpl implements org.data.MyDto  {
...
}

Describe the solution you'd like

Adapt the pojo.mustache template to take this extension into account.

{{>generatedAnnotation}}
public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}}{{^parent}}{{#hateoas}}extends RepresentationModel<{{classname}}> {{/hateoas}}{{/parent}} {{#serializableModel}}implements Serializable{{/serializableModel}} {
{{#serializableModel}}

What do you thinki?

@wing328
Copy link
Member

wing328 commented Mar 6, 2022

Closed via #11784 by @borsch (Thank you)

@jorgerod please pull the latest master to give it another try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants