Skip to content

Commit

Permalink
Modify YAML to support snapshot usage data (#846)
Browse files Browse the repository at this point in the history
* modify yaml to support snapshot usage data

* changes suggested by @jcscottiii

---------

Co-authored-by: DanielRyanSmith <[email protected]>
  • Loading branch information
DanielRyanSmith and DanielRyanSmith authored Oct 31, 2024
1 parent 9e83c23 commit 94d4092
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/ChromiumUsageInfo'
wpt:
$ref: '#/components/schemas/FeatureWPTSnapshots'
required:
- feature_id
- name
- baseline_status
ChromiumUsageInfo:
type: object
properties:
daily:
type: number
format: double
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 94d4092

Please sign in to comment.