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
i have a simple login route, the body should be submitted like this
{ "email":"[email protected]", "password":"secret" }
But instead the payload is this
[ "emali", "[email protected]", "password", "secret" ]
Here is my spec
"LoginParams": { "properties": { "email": { "type": "string" }, "password": { "type": "string" } }, "required": [ "email", "password" ], "type": "object", "additionalProperties": false },
And I am calling this endpoint like this
authApi.loginEmailPassword(loginParams: LoginParams((b) { b.email = email; b.password = password; }))
Create a body with the LoginParams type
LoginParams
@Openapi( additionalProperties: AdditionalProperties( useEnumExtension: true, pubName: 'api_client', ), inputSpec: RemoteSpec(path: 'http://localhost:3000/openapi.json'), generatorName: Generator.dio, skipIfSpecIsUnchanged: false, outputDirectory: 'api/api_client' )
Here is my client
authApi = AuthApi(dio, serializers);
serializers is imported from package:api_client/src/serializers.dart
package:api_client/src/serializers.dart
I expected the body payload to be in the correct format
No response
Windows
6.0.0
3.2
stable
The text was updated successfully, but these errors were encountered:
Hello, please could you provide a spec that reproduces the issue?
A complete spec that is as the spec you provided cannot be run against the generator.
Sorry, something went wrong.
Sorry I don't have the schema anymore, I made a lot of changes to the api structure and it works now
No branches or pull requests
Description of the bug
i have a simple login route, the body should be submitted like this
But instead the payload is this
Here is my spec
And I am calling this endpoint like this
Steps to reproduce
Create a body with the
LoginParams
typeMinimal openapi specification
Annotation used
Here is my client
serializers is imported from
package:api_client/src/serializers.dart
Expected behavior
I expected the body payload to be in the correct format
Logs
No response
Screenshots
No response
Platform
Windows
Library version
6.0.0
Flutter version
3.2
Flutter channel
stable
Additional context
No response
The text was updated successfully, but these errors were encountered: