Skip to content

Add AnyType support to Kotlin generators#10070

Merged
wing328 merged 1 commit into
masterfrom
kotlin-anytype
Aug 1, 2021
Merged

Add AnyType support to Kotlin generators#10070
wing328 merged 1 commit into
masterfrom
kotlin-anytype

Conversation

@wing328

@wing328 wing328 commented Aug 1, 2021

Copy link
Copy Markdown
Member

Add AnyType support to Kotlin server.

@@ -11,7 +11,6 @@
 */
 package org.openapitools.client.models
 
-import org.openapitools.client.models.AnyType
 
 import com.squareup.moshi.Json
 
@@ -31,6 +30,6 @@ data class ApiResponse (
     @Json(name = "message")
     val message: kotlin.String? = null,
     @Json(name = "any_test")
-    val anyTest: AnyType? = null
+    val anyTest: kotlin.Any? = null
 )

To fix #10036

PR checklist

  • Read the contribution guidelines.
  • Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community.
  • Run the following to build the project and update samples:
    ./mvnw clean package 
    ./bin/generate-samples.sh
    ./bin/utils/export_docs_generators.sh
    
    Commit all changed files.
    This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
    These must match the expectations made by your contribution.
    You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/configs/java*.
    For Windows users, please run the script in Git BASH.
  • File the PR against the correct branch: master, 5.3.x, 6.0.x
  • If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.

cc @jimschubert (2017/09) ❤️, @dr4ke616 (2018/08) @karismann (2019/03) @Zomzog (2019/04) @andrewemery (2019/10) @4brunu (2019/11) @yutaka0m (2020/03)

@wing328 wing328 changed the title add AnyType support to Kotlin Add AnyType support to Kotlin generators Aug 1, 2021
@wing328 wing328 added this to the 5.2.1 milestone Aug 1, 2021
@4brunu

4brunu commented Aug 1, 2021

Copy link
Copy Markdown
Contributor

Looks good to me 👍

@wing328
wing328 merged commit fc28661 into master Aug 1, 2021
@wing328
wing328 deleted the kotlin-anytype branch August 1, 2021 16:19
yongs2 pushed a commit to yongs2/openapi-generator that referenced this pull request Aug 11, 2021
@XieX XieX mentioned this pull request Aug 18, 2021
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] [Kotlin] Unresolved reference AnyType

2 participants