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

Missing query param default value #174

Open
belousovgm opened this issue Mar 25, 2022 · 0 comments
Open

Missing query param default value #174

belousovgm opened this issue Mar 25, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@belousovgm
Copy link

Hello! I faced a problem when was trying to use default parameter value:

parameter statement:

      parameters:
        - in: query
          name: parameter
          schema:
            type: string
            default: 'value'

expected generated code:

suspend fun get(parameter: kotlin.String? = "value") : Response

actual generated code:

suspend fun get(parameter: kotlin.String? = null) : Response
@Alex009 Alex009 added the bug Something isn't working label May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants