You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/12/20 07:37:00 UTC

[jira] [Updated] (CAMEL-18659) camel-openapi-java - Support for nullable

     [ https://issues.apache.org/jira/browse/CAMEL-18659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-18659:
--------------------------------
    Fix Version/s: 3.21.0
                       (was: 3.x)

> 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
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 3.21.0
>
>
> 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)