@@ -13,14 +13,21 @@ and use next command from the project root.
1313
1414## Generator configuration Features
1515
16- 1 . When generating oneOf schemas, the generator creates its
16+ 1 . Two client generation modes have been added:
17+ strict (for client testing) and lenient (for release).
18+ In strict mode, the client will throw an exception if the
19+ types do not match or the required fields are missing;
20+ in lenient mode, error data will be output as a warning to
21+ the console. The templates for generating these modes
22+ are located in the generator-templates folder.
23+ 2 . When generating oneOf schemas, the generator creates its
1724own abstract class, which does not look like it would like.
1825The problem was solved by replacing the abstract generator
1926class with ours using typeMappings in the generator config.
20- 2 . The generator treats the discriminator value as a string,
27+ 3 . The generator treats the discriminator value as a string,
2128but in our case it's numbers. To solve this problem, changes
2229have been made to the model_generic.mustache template.
23- 3 . By default, when the discriminator was unknown, the client
30+ 4 . By default, when the discriminator was unknown, the client
2431threw an error. To avoid this, such models will be skipped.
2532To solve this problem, changes have been made
2633to the model_generic.mustache template.
0 commit comments