Support custom media type
See original GitHub issueHi! I have the following code
@GET
@Operation(
        ...
        responses = {
                @ApiResponse(
                        responseCode = "200",
                        content = @Content(
                                examples = {
                                        @ExampleObject(
                                                name = "Some name",
                                                value = "Some Value"
                                        )
                                }
                        ))
        })
@Produces("customMediaType")
public A fetchFont() {
    ... 
}
with this code the following piece of documentation will appear in swagger.json
"200" : {
    "content" : {
        "customMediaType" : {
            "examples" : {
                "Some name" : {
                    "value" :  "Some value"
                }
            }
        }
    }
}
However, when converting json to md using widdershins, this section is not displayed. This is due to the custom media type. Thanks in advance for any effort on this issue!
Issue Analytics
- State:
 - Created 2 years ago
 - Comments:6 (3 by maintainers)
 
Top Results From Across the Web
A Custom Media Type for a Spring REST API - Baeldung
In this tutorial, we're going to take a look at defining custom media types and producing them by Spring REST controller.
Read more >rest - How to create a custom media type (application/vnd) for ...
The media type will define my message formats so I need to add XML schema and JSON schema to go with the new...
Read more >Media types - GitHub Docs
Learn about media types for specifying the format of the data you want to consume. Custom media types are used in the API...
Read more >Custom Media Types in Spring REST API - amitph
A guide on How to Use Custom Media Types in Spring REST API. Covers Versioning Spring REST API by using Custom Media Types....
Read more >REST Web Service with Custom Media Types
The following REST interface provides one custom Media Type (vnd.net.juniper.space.user-management.users) having multiple JSON and XML representations. Root ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi @MikeRalphson, just created https://github.com/Mermade/widdershins/pull/462 with potential solution
@KirylBubovich would certainly look at an option to support this. Do you have any time to work up a PR?