Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Implementation for anyOf #761

Open
setime opened this issue Jul 21, 2024 · 1 comment
Open

[FEATURE] Implementation for anyOf #761

setime opened this issue Jul 21, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@setime
Copy link

setime commented Jul 21, 2024

The schema anyOf is not implemented. This leads wrong schemas for values with anyOf and parsing issues.

Add a condition for anyOf in the function generatePropertiesContent() in the file swagger_models_generator.dart. Create the function generatePropertyContentByAnyOf() similar to generatePropertyContentByAllOf().

@setime setime added the enhancement New feature or request label Jul 21, 2024
@setime setime changed the title [FEATURE] Implementation for allOf [FEATURE] Implementation for anyOf Jul 21, 2024
@wolru
Copy link

wolru commented Oct 11, 2024

Same here. It is converted into dynamic.

{"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Phone Number"}}
=> final dynamic phoneNumber;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants