Skip to content

[Chore] Add @Override to generated OpenAPI schemas #2053

Description

@gcatanese

Context

Generated AbstractOpenApiSchema classes override equals(Object) without an @Override annotation. The omission originates in templates-v7/libraries/jersey3/AbstractOpenApiSchema.mustache and affects existing generated classes, including the Document Collector models reviewed in PR #2045.

Proposed Change

Add @Override immediately above equals(Object) in the AbstractOpenApiSchema.mustache template, then regenerate the affected models through the standard SDK automation flow.

Benefit

Makes the override explicit, lets the compiler validate the method signature, and aligns these generated classes with the existing POJO template convention. This is a readability and maintainability improvement with no expected behavior change.

Activity

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

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