带有Kotlin的OpenApi 3不会生成验证

带有Kotlin的OpenApi 3不会生成验证,kotlin,openapi,openapi-generator,Kotlin,Openapi,Openapi Generator,我试图用OpenApi生成器生成请求,但忽略了所有约束,如min、minvalue、maxlength等。例如: data class SomeClassNameGen ( @JsonProperty("queryText") val queryText: kotlin.String, @JsonProperty("test") val test: kotlin.Int? = null } 来自openapi.yaml的代码 SomeClassName:

我试图用OpenApi生成器生成请求,但忽略了所有约束,如min、minvalue、maxlength等。例如:

data class SomeClassNameGen (

        @JsonProperty("queryText") val queryText: kotlin.String,

        @JsonProperty("test") val test: kotlin.Int? = null
}
来自openapi.yaml的代码

SomeClassName:
  title: desc
  description: desc
  type: desc
  properties:
    test:
      type: integer
      minimum: 1
      maximum: 20
    queryText:
      description: Текст запроса
      type: string
      minLength: 10,
      exclusiveMaximum: true
  required:
    - queryText

生成器中可能还不支持这些验证。请通过打开一个带有详细信息的问题,以便openapi生成器社区可以帮助您。生成器中可能还不支持这些验证。请打开一个带有详细信息的问题,以便openapi生成器社区可以帮助您。