Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.13.0
7.15.0
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ idna = "==3.7"
requests = ">=2.32.4"
pydantic = ">=2"
typing-extensions = ">=4.7.1"
lazy-imports = "==1.0.1"

[dev-packages]
wheel = "*"
Expand Down
11 changes: 10 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,21 @@ and use next command from the project root.

## Generator configuration Features

1. When generating oneOf schemas, the generator creates its
1. Two client generation modes have been added:
strict (for client testing) and lenient (for release).
In strict mode, the client will throw an exception if the
types do not match or the required fields are missing;
in lenient mode, error data will be output as a warning to
the console. The templates for generating these modes
are located in the generator-templates folder.
2. 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,
3. 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 model_generic.mustache template.
3. By default, when the discriminator was unknown, the client
4. By default, when the discriminator was unknown, the client
threw an error. To avoid this, such models will be skipped.
To solve this problem, changes have been made
to the model_generic.mustache template.
Expand Down
Loading