We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Take a look on this spec.
"Services": { "type": "array", "items": { "$ref": "#/components/schemas/Service" } }, "ServicesPage": { "allOf": [ { "$ref": "#/components/schemas/Page" }, { "type": "object", "properties": { "services": { "$ref": "#/components/schemas/Services" } } } ] }, ...
It generates the following Dart classes (shortened for displaying purposes)
@JsonSerializable(explicitToJson: true) class Services { Services(); factory Services.fromJson(Map<String, dynamic> json) => _$ServicesFromJson(json); static const fromJsonFactory = _$ServicesFromJson; static const toJsonFactory = _$ServicesToJson; Map<String, dynamic> toJson() => _$ServicesToJson(this); } @JsonSerializable(explicitToJson: true) class ServicesPage { ServicesPage({ this.services, }); factory ServicesPage.fromJson(Map<String, dynamic> json) => _$ServicesPageFromJson(json); @JsonKey(name: 'services', includeIfNull: false) final Services? services; static const fromJsonFactory = _$ServicesPageFromJson; static const toJsonFactory = _$ServicesPageToJson; Map<String, dynamic> toJson() => _$ServicesPageToJson(this); }
No array is created for the Services object.
The text was updated successfully, but these errors were encountered:
Any news on this? @fryette
Sorry, something went wrong.
Hi @alextarrago I did not checked this issue yet. Will try to do this this week
Hi @alextarrago please check latest version 2.3.9
Amazing @Vovanella95 . Thanks for the fast fix!
fryette
Vovanella95
Successfully merging a pull request may close this issue.
Take a look on this spec.
It generates the following Dart classes (shortened for displaying purposes)
No array is created for the Services object.
The text was updated successfully, but these errors were encountered: