Re-route schema references
The annotations on my REST resources define the schema references with URLs like this:
@APIResponse(content = @Content(schema = @Schema(ref = "https://my.company.com/my-schema.json")))
But I need the OpenAPI processor to find the schema from the Java resources instead: resource://my-schema.json.
What's the best way to re-route the the schema refs to the resources using Smallrye OpenAPI 4. It would need to also handle the $ref properties inside the schemas themselves that have URLs. My guess was to utilize OASFilter? Unless there is a better way.
Hi @mikethecalamity , is your goal to have the remote URLs references in the output but also include the contents of the schema JSON files in the main OpenAPI? Or do you want a single doc result without any references?
Hi @MikeEdgar, I would like a single doc without references.