Skip to content

Commit

Permalink
Add avatar_url and language fields to project JSON
Browse files Browse the repository at this point in the history
and OpenAPI schema
  • Loading branch information
andrew committed Nov 22, 2023
1 parent ef07f4f commit 57213bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/api/v1/projects/_project.json.jbuilder
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 4 additions & 0 deletions openapi/api/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ components:
updated_at:
type: string
format: date-time
avatar_url:
type: string
language:
type: string
Collection:
type: object
properties:
Expand Down

0 comments on commit 57213bb

Please sign in to comment.