From 9e758a3ae76384c46bc561558c8afdfb910bff08 Mon Sep 17 00:00:00 2001 From: Kyle Date: Wed, 10 Jan 2024 10:29:35 +0800 Subject: [PATCH] Fix OpenAPI doc issue (#23619) --- spec/requests/api/schemas/json/post_replies_response.json | 2 +- spec/requests/api/schemas/json/post_show_response.json | 2 +- spec/requests/api/schemas/json/post_update_response.json | 2 +- spec/requests/api/schemas/json/topic_create_response.json | 2 +- spec/requests/api/schemas/json/topic_show_response.json | 2 +- spec/requests/api/topics_spec.rb | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/requests/api/schemas/json/post_replies_response.json b/spec/requests/api/schemas/json/post_replies_response.json index 5e762e15891..aa3f0c0b337 100644 --- a/spec/requests/api/schemas/json/post_replies_response.json +++ b/spec/requests/api/schemas/json/post_replies_response.json @@ -54,7 +54,7 @@ "type": "integer" }, "score": { - "type": "integer" + "type": "number" }, "yours": { "type": "boolean" diff --git a/spec/requests/api/schemas/json/post_show_response.json b/spec/requests/api/schemas/json/post_show_response.json index fa6f32bc495..1e16c83d676 100644 --- a/spec/requests/api/schemas/json/post_show_response.json +++ b/spec/requests/api/schemas/json/post_show_response.json @@ -47,7 +47,7 @@ "type": "integer" }, "score": { - "type": "" + "type": "number" }, "yours": { "type": "boolean" diff --git a/spec/requests/api/schemas/json/post_update_response.json b/spec/requests/api/schemas/json/post_update_response.json index 56a710290c7..e395b053e04 100644 --- a/spec/requests/api/schemas/json/post_update_response.json +++ b/spec/requests/api/schemas/json/post_update_response.json @@ -51,7 +51,7 @@ "type": "integer" }, "score": { - "type": "" + "type": "number" }, "yours": { "type": "boolean" diff --git a/spec/requests/api/schemas/json/topic_create_response.json b/spec/requests/api/schemas/json/topic_create_response.json index 02038d367b9..d142fd2d782 100644 --- a/spec/requests/api/schemas/json/topic_create_response.json +++ b/spec/requests/api/schemas/json/topic_create_response.json @@ -56,7 +56,7 @@ "type": "integer" }, "score": { - "type": "integer" + "type": "number" }, "yours": { "type": "boolean" diff --git a/spec/requests/api/schemas/json/topic_show_response.json b/spec/requests/api/schemas/json/topic_show_response.json index 11923b92fee..b6fe0b92023 100644 --- a/spec/requests/api/schemas/json/topic_show_response.json +++ b/spec/requests/api/schemas/json/topic_show_response.json @@ -61,7 +61,7 @@ "type": "integer" }, "score": { - "type": "integer" + "type": "number" }, "yours": { "type": "boolean" diff --git a/spec/requests/api/topics_spec.rb b/spec/requests/api/topics_spec.rb index fc6a6f62eb3..1de78096b6a 100644 --- a/spec/requests/api/topics_spec.rb +++ b/spec/requests/api/topics_spec.rb @@ -84,7 +84,7 @@ RSpec.describe "topics" do type: :integer, }, score: { - type: :integer, + type: :number, }, yours: { type: :boolean,