From 1996f5130fc8fbfc5702bf1bceb33e6d1b66bdf4 Mon Sep 17 00:00:00 2001 From: Greg Myers Date: Sat, 4 Apr 2020 20:00:39 +0100 Subject: [PATCH] doc: note that content-type is dynamic --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index bc6b121..317eaeb 100644 --- a/README.md +++ b/README.md @@ -546,6 +546,8 @@ Rswag::Api.configure do |c| end ``` +Take care when overriding Content-Type if you serve both YAML and JSON files as it will no longer switch the Content-Type header correctly. + ### Enable Swagger Endpoints for swagger-ui ###