You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
Generated functions to have api_key ({String? fields, String api_key}) as input to authenticate because it is specified in the /users/me/pods:security: field.
$request.url in src/api/generated_code/sensibo.swagger.chopper.dart:29 looks like this
https://home.sensibo.com/api/v2/users/me/pods?fields=*
and in the "Common Examples" you can see that it should look like this https://home.sensibo.com/api/v2/users/me/pods?fields=*&apiKey={api_key}
The text was updated successfully, but these errors were encountered:
Describe the bug
The generated code does not take into account security field.
To Reproduce
_usersMePodsGet({
functionExpected behavior
Generated functions to have api_key ({String? fields, String api_key}) as input to authenticate because it is specified in the
/users/me/pods:
security:
field.Swagger specification link
Link to swagger/OpenApi documentation
Library version used:
chopper: ^6.1.1
json_annotation: ^4.8.0
build_runner: ^2.3.3
chopper_generator: ^6.0.0
json_serializable: ^6.6.1
swagger_dart_code_generator: ^2.10.4
Additional context
You can run the code like this
$request.url in src/api/generated_code/sensibo.swagger.chopper.dart:29 looks like this
https://home.sensibo.com/api/v2/users/me/pods?fields=*
and in the "Common Examples" you can see that it should look like this
https://home.sensibo.com/api/v2/users/me/pods?fields=*&apiKey={api_key}
The text was updated successfully, but these errors were encountered: