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

Support at generator of request parameters with Nullable type #157

Open
Tetraquark opened this issue Aug 19, 2021 · 0 comments
Open

Support at generator of request parameters with Nullable type #157

Tetraquark opened this issue Aug 19, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Tetraquark
Copy link
Collaborator

Need to add support to the network-generator of nullable parameters of a request.

In spec:

paths:
  /users:
    get:
      parameters:
        - name: "client_id"
          in: "query"
          schema:
            type: string
            nullable: true
          required: true
      summary: Returns a list of users.
      description: Optional extended description in CommonMark or HTML.

Generator should create code like this:

override public open suspend fun users(client_id: dev.icerock.moko.network.nullable.Nullable<kotlin.String>) : Unit
@Tetraquark Tetraquark added the enhancement New feature or request label Aug 19, 2021
@Alex009 Alex009 added this to the 0.18.0 milestone Aug 31, 2021
@Alex009 Alex009 modified the milestones: 0.18.0, 0.19.0 Mar 4, 2022
@Alex009 Alex009 modified the milestones: 0.19.0, 0.20.0 Aug 27, 2022
@Alex009 Alex009 removed this from the 0.20.0 milestone Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants