From 57213bbb69b96f5b60f8de792c6ae332782185e5 Mon Sep 17 00:00:00 2001 From: Andrew Nesbitt Date: Wed, 22 Nov 2023 11:04:51 +0000 Subject: [PATCH] Add avatar_url and language fields to project JSON and OpenAPI schema --- app/views/api/v1/projects/_project.json.jbuilder | 2 +- openapi/api/v1/openapi.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/api/v1/projects/_project.json.jbuilder b/app/views/api/v1/projects/_project.json.jbuilder index e671c87..71d940f 100644 --- a/app/views/api/v1/projects/_project.json.jbuilder +++ b/app/views/api/v1/projects/_project.json.jbuilder @@ -1,3 +1,3 @@ -json.extract! project, :id, :url, :last_synced_at, :repository, :owner, :packages, :commits, :issues, :events, :keywords, :dependencies, :score, :created_at, :updated_at +json.extract! project, :id, :url, :last_synced_at, :repository, :owner, :packages, :commits, :issues, :events, :keywords, :dependencies, :score, :created_at, :updated_at, :avatar_url, :language json.project_url api_v1_project_url(project, format: :json) json.html_url project_url(project) diff --git a/openapi/api/v1/openapi.yaml b/openapi/api/v1/openapi.yaml index 9a44141..56b4fd5 100644 --- a/openapi/api/v1/openapi.yaml +++ b/openapi/api/v1/openapi.yaml @@ -206,6 +206,10 @@ components: updated_at: type: string format: date-time + avatar_url: + type: string + language: + type: string Collection: type: object properties: