M created CAMEL-18659:
-------------------------

             Summary: Support for nullable
                 Key: CAMEL-18659
                 URL: https://issues.apache.org/jira/browse/CAMEL-18659
             Project: Camel
          Issue Type: Improvement
          Components: camel-openapi-java
    Affects Versions: 3.13.0, 3.12.0
            Reporter: M


Hi,

I marked field with @Schema annotation like below:

{color:#bbb529}@Schema(example = "1234", nullable = true)
private Long id;{color}{color:#cc7832}
{color}

I got output:

          "id" : {
            "format" : "int64",
            "type" : "integer",
            "example" : 1234
          }

when my expectation is:

          "id" : {
            "format" : "int64",
            "type" : "integer",
            *"nullable" : true,*
            "example" : 1234
          }

Or maybe I'm doing something wrong ;).

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to