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
It’s not implemented in the UI yet. You can file a ticket with the project.
--
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 swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.