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
create openapi spec with a path like
/nearby: get: summary: Get nearby places tags: - Generic - Locations responses: '200': description: Return everything nearby content: application/json: schema: type: object properties: locations: type: array items: $ref: '#/components/schemas/Location'
run swagger parsert
typed reponse schema for the response with properties
@Freezed() class GetNearbyResponse with _$GetNearbyResponse { const factory GetNearbyResponse({ required List<Locations> locations, }) = _GetNearbyResponse; factory GetNearbyResponse.fromJson(Map<String, Object?> json) => _$GetNearbyResponseFromJson(json); }
response class with no child parameteres
@Freezed() class GetNearbyResponse with _$GetNearbyResponse { const factory GetNearbyResponse() = _GetNearbyResponse; factory GetNearbyResponse.fromJson(Map<String, Object?> json) => _$GetNearbyResponseFromJson(json); }
No response
Dart SDK version: 3.3.3 (stable) (Tue Mar 26 14:21:33 2024 +0000) on "macos_arm64"``` </details><details><summary>Packages version</summary> ```console ^1.17.2
The text was updated successfully, but these errors were encountered:
@XanderD99 Hi, this should be fixed in the latest version, can you test it with your examples?
Sorry, something went wrong.
StarProxima
No branches or pull requests
Steps to reproduce
create openapi spec with a path like
run swagger parsert
Expected results
typed reponse schema for the response with properties
Actual results
response class with no child parameteres
Your OpenApi snippet
/nearby:
get:
summary: Get nearby places
tags:
- Generic
- Locations
responses:
'200':
description: Return everything nearby
content:
application/json:
schema:
type: object
properties:
locations:
type: array
items:
$ref: '#/components/schemas/Location'
Code sample
No response
Logs
No response
Dart version and used packages versions
Dart version
The text was updated successfully, but these errors were encountered: