intellij-openapi-generator
intellij-openapi-generator copied to clipboard
OpenAPI data types are all translated to `Kotlin.Any`.
E.g., given
openapi: "3.1.0"
info:
title: Get a user's profile
version: "1.0"
paths:
/profile:
get:
description: The requested user's profile, if it exist
responses:
'200':
description: profile body
content:
application/json:
schema:
type: object
required:
- username
- description
- id
properties:
username:
type: string
description:
type: string
gender:
type: string
id:
type: int
[...]
the output is:
data class ProfileGet200Response (
@Json(name = "username")
val username: kotlin.Any?,
@Json(name = "description")
val description: kotlin.Any?,
@Json(name = "id")
val id: kotlin.Any?,
@Json(name = "gender")
val gender: kotlin.Any? = null,
[...]
Surely I am missing something?
Why has this issue not been replied to?
- we have other stuff to do than answer questions in issues.
- this is not a support forum.
- you obviously have not read the entire user documentation.