Terry Franklin
06/28/2020, 11:42 PM{
"$schema": "<http://json-schema.org/draft-07/schema#>",
"$id": "<https://abc.com/request.schema.json>",
"title": "Request record",
"type": "object",
"properties": {
"id": {
"description": "The unique ID of a request",
"type": "string"
},
"name": {
"description": "The name of a request",
"type": "string"
}
},
"required": [
"id"
]
}
I would expect to receive output like -
data class Request(
val id: String,
val name: String?
)
but instead, this is generated (both fields are marked as required) -
data class Request(
val id: String,
val name: String
)
Ideally I'd like to find a solution that can be implemented programatically too, rather than requiring a manual plugin (though that's not as important as getting the nullable part right).elizarov
06/29/2020, 9:04 AMTerry Franklin
06/29/2020, 9:49 AMMatteo Mirk
06/29/2020, 10:20 AMelizarov
06/29/2020, 11:46 AMSam Dozor
06/29/2020, 12:00 PMelizarov
06/29/2020, 12:01 PMSam Dozor
06/29/2020, 12:05 PMelizarov
06/29/2020, 12:06 PMSam Dozor
06/29/2020, 12:08 PMTerry Franklin
06/30/2020, 1:24 AM