[BUG][dart / dart-dio] additionalProperties
crashes the generator in oneOf
objects on OAS 3.1
#20441
Open
5 of 6 tasks
Labels
Bug Report Checklist
Description
Defining
additionalProperties
(set either to true or false) in a schema oftype: object
with aoneOf
property, crashes both dart generators when using the OAS version3.1
. The generators do not crash when using OAS version3.0
.This issue is not present in other generators (I have tried all C++ generators, all Rust generators, TS angular, python fastapi and JS)
openapi-generator version
I have found the issue is present on 7.11.0-SNAPSHOT, and it goes all the way back to at least 7.9.0, and may go even further back.
OpenAPI declaration file content or URL
Generation Details
Default settings, with either the
dart
ordart-dio
generators, with anyopenapi: 3.1
schema that usesadditionalProperties
in a schema with aoneOf
property.Steps to reproduce
openapi: 3.1.1
java -Dcolor -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g dart -o outoutout -i test.yaml
or-g dart-dio
Related issues/PRs
None
Suggest a fix
I cannot find the reason as to why the crash happens, but there are a few issues with the dart generators and
additionalProperties
already reported, which may or may not be related and could fix the issue if they get fixed.The text was updated successfully, but these errors were encountered: