Skip to content

Latest commit

 

History

History
executable file
·
36 lines (28 loc) · 1.54 KB

File metadata and controls

executable file
·
36 lines (28 loc) · 1.54 KB

Development

Java client is written using java7. Development environment requires java11+. Models generation based on openapi spec.

Generation

To regenerate models from openapi definition, clone latest open api definitions and use next command from the project root.

./update-models.sh

Generator configuration Features

  1. When generating oneOf schemas, the generator creates its own abstract class, which does not look like it would like. The problem was solved by replacing the abstract generator class with ours using typeMappings in the generator config.
  2. The generator treats the discriminator value as a string, but in our case it's numbers. To solve this problem, changes have been made to the pojo.mustache template.
  3. Disabled validation of additional JSON fields in the pojo.mustache template.
  4. The generator replaces the list field with _list, solved using nameMappings in the generator config.

Problem solving

To solve new problems, use the generator settings (java, common) and templates.

Do not edit the generated files! They will be overwritten after generation!