[ 
https://issues.apache.org/jira/browse/CAMEL-18659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17625126#comment-17625126
 ] 

Claus Ibsen commented on CAMEL-18659:
-------------------------------------

Nullable is not support at the moment - you are welcome to dive into the code 
to see if you can add this. And also help with an unit test or sample project 
to help demonstrate this.

> camel-openapi-java - 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.12.0, 3.13.0
>            Reporter: M
>            Priority: Minor
>
> Hi,
> I marked field with @Schema annotation like below:
> {color:#bbb529}@Schema(example = "1234", nullable = true)
> private Long id;{color}
> I got output:
> {code:java}
> "id" : {
>             "format" : "int64",
>             "type" : "integer",
>             "example" : 1234
>           } {code}
> when my expectation is:
> {code:java}
> "id" : {
>             "format" : "int64",
>             "type" : "integer",
>             "nullable" : true,  
>             "example" : 1234
>          } {code}
> Or maybe I'm doing something wrong ;).
> Open-api 3.0.2.



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

Reply via email to