Do you know when it will be implemented?

On Friday, 13 October 2017 09:42:29 UTC-4, Provash Dowari wrote:
>
> Hi,
>
> I have query for example request body rendering in Swagger UI. I am using 
> swagger-jaxrs2-2.0.0-rc2 version for document json generation and 
> swagger-ui-v3.3.1 for UI. Below is my sample code for REST Resource.
>
> Sample Code :
>
> test(@RequestBody(required = true, content = @Content(mediaType = 
> APPLICATION_JSON,schema = @Schema(implementation = Foo.class, example 
> ="fooex1" )
>                                ,examples 
> ={@ExampleObject(name="fooExternalEx1",externalValue="http://localhost:8080/receiver/fooExternalEx1.json";)}))
>  Foo f) {
>   
> }
>
>
> As per Open API spec documentation, UI should replace schema example  with 
> Content example. But UI does not rendering external example. I have seen 
> generated openapi.json has reference to external example.
>
>
> openapi.json snippet:
>
> "requestBody" : {
>           "content" : {
>             "application/json" : {
>               "schema" : {
>                 "$ref" : "#/components/schemas/Foo"
>               },
>               "examples" : {
>                 "fooExternalEx1" : {
>                   "description" : "fooExternalEx1",
>                   "externalValue" : 
> "http://localhost:8080/receiver/fooExternalEx1.json";
>                 }
>               }
>             }
>           },
>           "required" : true
>         },
>
>
> Please let me know what could be the issue or Do I have to do any other 
> configuration.
>
>
>
> Regards,
>
> Provash
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to