openapi-diff icon indicating copy to clipboard operation
openapi-diff copied to clipboard

Renderers should display example changes, not just schema changes

Open DrSatyr opened this issue 1 month ago • 0 comments

When a ChangedMediaType has example changes but no schema changes, the renderers (Console, Markdown, Asciidoc, HTML) currently show nothing in the details section because they only render schema changes. The ChangedMediaType model has example and examples fields that could be rendered alongside schema changes.

This was discovered while fixing https://github.com/OpenAPITools/openapi-diff/issues/870 where the NPE was caused by null schema when only examples changed.

DrSatyr avatar Nov 28 '25 11:11 DrSatyr