Skip to content

Commit

Permalink
modify yaml to support snapshot usage data (#846)
Browse files Browse the repository at this point in the history
Co-authored-by: DanielRyanSmith <[email protected]>
  • Loading branch information
DanielRyanSmith and DanielRyanSmith authored Oct 31, 2024
1 parent 9e83c23 commit 732c87a
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions openapi/backend/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -757,18 +757,26 @@ components:
baseline:
$ref: '#/components/schemas/BaselineInfo'
usage:
type: number
format: float
description: >
Latest snapshot of the usage metric for the given feature.
minimum: 0.0
maximum: 100.0
type: object
properties:
chromium:
$ref: '#/components/schemas/UsageInfo'
wpt:
$ref: '#/components/schemas/FeatureWPTSnapshots'
required:
- feature_id
- name
- baseline_status
UsageInfo:
type: object
properties:
daily:
type: number
format: float
description: >
Latest snapshot of the usage metric for the given feature.
minimum: 0.0
maximum: 100.0
BasicErrorModel:
type: object
required:
Expand Down

0 comments on commit 732c87a

Please sign in to comment.