From 7729c0d8e9b431af5da6fcde335b2566afcc77fc Mon Sep 17 00:00:00 2001 From: Tom Konidas Date: Sat, 7 Sep 2024 11:55:17 -0400 Subject: [PATCH 1/2] Fix typos --- lib/plexus_web/controllers/api/v1/schemas/score.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plexus_web/controllers/api/v1/schemas/score.ex b/lib/plexus_web/controllers/api/v1/schemas/score.ex index e9211f0..5c9456b 100644 --- a/lib/plexus_web/controllers/api/v1/schemas/score.ex +++ b/lib/plexus_web/controllers/api/v1/schemas/score.ex @@ -8,7 +8,7 @@ defmodule PlexusWeb.API.V1.Schemas.Score do type: :object, properties: %{ rating_type: %Schema{type: :string, description: "Rating Type", enum: ["micro_g", "native"]}, - numenator: %Schema{type: :number, description: "Numenator"}, + numerator: %Schema{type: :number, description: "Numerator"}, denominator: %Schema{type: :integer, description: "Denominator"}, total_count: %Schema{type: :string, description: "Total count of ratings"} }, From 49927e7bd250f6d5c7a9c98e6a8a74ed37835e92 Mon Sep 17 00:00:00 2001 From: Tom Konidas Date: Sat, 7 Sep 2024 11:56:19 -0400 Subject: [PATCH 2/2] Rename Android -> App --- lib/plexus_web/controllers/api/v1/app_controller.ex | 2 +- lib/plexus_web/controllers/api/v1/schemas/app.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plexus_web/controllers/api/v1/app_controller.ex b/lib/plexus_web/controllers/api/v1/app_controller.ex index b960d3c..8914b46 100644 --- a/lib/plexus_web/controllers/api/v1/app_controller.ex +++ b/lib/plexus_web/controllers/api/v1/app_controller.ex @@ -52,7 +52,7 @@ defmodule PlexusWeb.API.V1.AppController do parameters: [ package: [ in: :path, - description: "Android Package", + description: "App Package", type: :string, required: true, example: "com.google.android.youtube" diff --git a/lib/plexus_web/controllers/api/v1/schemas/app.ex b/lib/plexus_web/controllers/api/v1/schemas/app.ex index 8f8a941..9069db2 100644 --- a/lib/plexus_web/controllers/api/v1/schemas/app.ex +++ b/lib/plexus_web/controllers/api/v1/schemas/app.ex @@ -9,7 +9,7 @@ defmodule PlexusWeb.API.V1.Schemas.App do type: :object, properties: %{ name: %Schema{type: :string, description: "Name"}, - package: %Schema{type: :string, description: "Android Package"}, + package: %Schema{type: :string, description: "App Package"}, icon_url: %Schema{type: :string, description: "URL of Icon"}, scores: Scores },