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

The duplicate condition of checking nullable file parameter while implementing multipart request #733

Open
tungpham6195 opened this issue Dec 30, 2024 · 0 comments

Comments

@tungpham6195
Copy link

tungpham6195 commented Dec 30, 2024

Describe the bug
The issue is happening when I change the parameter to nullable. It only happens when the nullable parameter is without required keyword.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
The generated code should contains the duplicate condition of checking nullable parameter.

Screenshots
The declaration of my method:
Screenshot 2024-12-30 at 22 32 14

The generated codes:
Screenshot 2024-12-30 at 22 31 53

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
The project is using retrofit_generator: 9.1.7

@tungpham6195 tungpham6195 changed the title The duplicated condition of checking nullable file parameter while implementing multipart request The duplicate condition of checking nullable file parameter while implementing multipart request Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant