Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
avivlevitski-vlz opened this issue May 13, 2024 · 0 comments · Fixed by #18654
Closed

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

avivlevitski-vlz opened this issue May 13, 2024 · 0 comments · Fixed by #18654

Comments

@avivlevitski-vlz
Copy link
Contributor

avivlevitski-vlz commented May 13, 2024

[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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant