From dcc669de4766e2d11c41b795fc5ce7248cb65d63 Mon Sep 17 00:00:00 2001 From: Josh Puetz Date: Fri, 29 Jul 2022 10:21:27 -0500 Subject: [PATCH] Rename generated swagger file --- spec/swagger_helper.rb | 4 ++-- swagger/v1/{swagger.json => api_v1.json} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename swagger/v1/{swagger.json => api_v1.json} (99%) diff --git a/spec/swagger_helper.rb b/spec/swagger_helper.rb index 9b2fdb8c1..97d423f32 100644 --- a/spec/swagger_helper.rb +++ b/spec/swagger_helper.rb @@ -13,11 +13,11 @@ RSpec.configure do |config| # document below. You can override this behavior by adding a swagger_doc tag to the # the root example_group in your specs, e.g. describe "...", swagger_doc: "v2/swagger.json" config.swagger_docs = { - "v1/swagger.json" => { + "v1/api_v1.json" => { openapi: "3.0.3", info: { title: "Forem API V1", - version: "v1", + version: "1.0.0", description: "Access Forem articles, users and other resources via API. For a real-world example of Forem in action, check out [DEV](https://www.dev.to). All endpoints require an 'api-key' header and a accept header. diff --git a/swagger/v1/swagger.json b/swagger/v1/api_v1.json similarity index 99% rename from swagger/v1/swagger.json rename to swagger/v1/api_v1.json index 66e489498..7c8074339 100644 --- a/swagger/v1/swagger.json +++ b/swagger/v1/api_v1.json @@ -2,7 +2,7 @@ "openapi": "3.0.3", "info": { "title": "Forem API V1", - "version": "v1", + "version": "1.0.0", "description": "Access Forem articles, users and other resources via API.\n For a real-world example of Forem in action, check out [DEV](https://www.dev.to).\n All endpoints require an 'api-key' header and a accept header.\n\n Dates and date times, unless otherwise specified, must be in\n the [RFC 3339](https://tools.ietf.org/html/rfc3339) format." }, "paths": {