You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Link has type application/vnd.oai.openapi;version=3.0 (note without the +json) and retrieving that delivers a OpenAPI JSON file with Content-Type header "application/vnd.oai.openapi;version=3.0".
The text was updated successfully, but these errors were encountered:
philvarner
changed the title
Link rel=service-desc advertises openapi+json, but resource returns a yaml file
Link rel=service-desc advertises openapi+json, but resource returns a yaml file with content-type text/plain
Feb 27, 2022
Describe the bug
Franklin advertises the service-desc link as
application/vnd.oai.openapi+json;version=3.0
, but actually delivers an OpenAPI YAML file.Code is:
franklin/application/src/main/scala/com/azavea/franklin/api/services/LandingPageService.scala
Line 37 in 0cb5d28
Link in Landing Page:
Expected behavior
Link has type
application/vnd.oai.openapi;version=3.0
(note without the+json
) and retrieving that delivers a OpenAPI JSON file with Content-Type header "application/vnd.oai.openapi;version=3.0".Additional context
The content type returned by SwaggerHttp4s (in a library) is incorrect, but this component is deprecated anyway in favor of
this newer OpenApi component for tapir https://github.com/softwaremill/tapir/tree/master/docs/openapi-docs/src/main/scala/sttp/tapir/docs/openapi
The text was updated successfully, but these errors were encountered: