Skip to content

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

@jorgerod

Description

@jorgerod

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?

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