From a3603f563d1798d54cc47072e57a2a2b2e86200c Mon Sep 17 00:00:00 2001 From: Gagandeep Bhatia Date: Wed, 24 Jul 2024 16:15:51 +0200 Subject: [PATCH] Renaming According to PR comments --- lib/trento_web/openapi/v1/schema/activity_log.ex | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/trento_web/openapi/v1/schema/activity_log.ex b/lib/trento_web/openapi/v1/schema/activity_log.ex index 49729764fb..ca9a087556 100644 --- a/lib/trento_web/openapi/v1/schema/activity_log.ex +++ b/lib/trento_web/openapi/v1/schema/activity_log.ex @@ -4,17 +4,18 @@ defmodule TrentoWeb.OpenApi.V1.Schema.ActivityLog do require OpenApiSpex alias OpenApiSpex.Schema - defmodule ActivityLogEntry do + defmodule ActivityLogEntries do @moduledoc false OpenApiSpex.schema(%{ type: :array, items: %Schema{ - title: "ActivityLogEntry", + title: "ActivityLogEntries", type: :object, additionalProperties: false, properties: %{ id: %Schema{ type: :string, + format: :uuid, description: "UUID (v4) of Activity Log entry." }, type: %Schema{ @@ -47,7 +48,7 @@ defmodule TrentoWeb.OpenApi.V1.Schema.ActivityLog do description: "Activity Log for the current installation.", type: :object, properties: %{ - data: ActivityLogEntry, + data: ActivityLogEntries, pagination: %Schema{ type: :object }