openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

[REQ][GO] Model templates not contains constraints checks for complex types

Open avivlevitski-vlz opened this issue 1 year ago • 0 comments

[REQ][GO] Model templates not contain constraints checks for complex types

Description

The TenantSettings model will be generated without the relevant constraints checks of DeclarativeSettings. (only the DeclarativeSettings will have the constraints checks)

openapi-generator version

7.5.0

OpenAPI declaration file content or URL
{
  "components": {
    "schemas": {
      "TenantSettings": {
        "type": "object",
        "properties": {
          "declarative": {
            "$ref": "#/components/schemas/DeclarativeSettings"
          }
        }
      }
      "DeclarativeSettings": {
        "type": "object",
        "properties": {
          "faultDomainCount": {
            "type": "integer",
            "format": "int32",
            "minimum": 1,
            "maximum": 5,
            "nullable": true
          }
        },
        "nullable": true,
        "x-omitempty": true,
        "x-isnullable": true
      }
    }
  }
}
Suggest a fix/enhancement

fill the missing section in the model templates which contains the missing constraints validations

avivlevitski-vlz avatar May 13 '24 09:05 avivlevitski-vlz