Skip to content

Commit

Permalink
Update apispec
Browse files Browse the repository at this point in the history
  • Loading branch information
roznawsk committed Mar 11, 2024
1 parent f72ff27 commit e725a21
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/jellyfish_web/api_spec/health_report.ex
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ defmodule JellyfishWeb.ApiSpec.HealthReport do
properties: %{
status: Status,
uptime: %Schema{type: :integer, description: "Uptime of Jellyfish (in seconds)"},
distribution: Distribution
distribution: Distribution,
version: %Schema{type: :string, description: "Version of Jellyfish"},
git_commit: %Schema{type: :string, description: "Commit hash of the build"}
},
required: [:status, :uptime, :distribution]
required: [:status, :uptime, :distribution, :version]
})
end
7 changes: 7 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -535,15 +535,22 @@ components:
properties:
distribution:
$ref: '#/components/schemas/HealthReportDistribution'
git_commit:
description: Commit hash of the build
type: string
status:
$ref: '#/components/schemas/HealthReportStatus'
uptime:
description: Uptime of Jellyfish (in seconds)
type: integer
version:
description: Version of Jellyfish
type: string
required:
- status
- uptime
- distribution
- version
title: HealthReport
type: object
x-struct: Elixir.JellyfishWeb.ApiSpec.HealthReport
Expand Down

0 comments on commit e725a21

Please sign in to comment.