Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18659

camel-openapi-java - Support for nullable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.12.0, 3.13.0
    • 3.21.0, 4.0-M1, 4.0.0
    • camel-openapi-java
    • None
    • Unknown

    Description

      Hi,

      I marked field with @Schema annotation like below:

      @Schema(example = "1234", nullable = true)
      private Long id;

      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 .

      Open-api 3.0.2.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            majster M
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: