Skip to content

[Java*] Ensure cross-language template consistency #4937

@jfiala

Description

@jfiala
Description

The cross-language consisteny of templates is currently not ensured, leading to low quality over time as features are implemented and not maintained over all languages immediately.

Swagger-codegen version

2.2.3-SNAPSHOT

Related issues

Discussion started in issue #4386

Suggest a Fix

I suggest two ways to go:
a) Use centralized template snippets (mustache lambdas)
b) Ensure consistency by adding Unittests which will track snippets across all languages with opt-out decision. Opt-outs have to be explained in the unittest/template.

IMHO a) would be easier to do as we have only one place to maintain.
b) allows better tracking of changes and is maybe better by not forcing immediate updates cross-languages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions