S
S
sanek_gyy2020-01-17 17:29:59
Java
sanek_gyy, 2020-01-17 17:29:59

How to describe swagger yaml to generate class without allArgsConstructor?

There are two classes Expression and Term which inherit from Expression.
5e21c3d0be46e434299242.jpeg
It is necessary to describe the same scheme in swagger yaml to generate ExpressionDto and TermDto, but when building, I get faild.
5e21c4d2a82c6753348541.jpeg
As I understand it, TermDto generates two identical constructors. How to avoid it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question