From 94d409246b1f0dc10ab3c23ad11c3e541d6e187a Mon Sep 17 00:00:00 2001 From: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Thu, 31 Oct 2024 22:36:42 +0000 Subject: [PATCH] Modify YAML to support snapshot usage data (#846) * modify yaml to support snapshot usage data * changes suggested by @jcscottiii --------- Co-authored-by: DanielRyanSmith --- openapi/backend/openapi.yaml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/openapi/backend/openapi.yaml b/openapi/backend/openapi.yaml index c479fe2d..10e295f4 100644 --- a/openapi/backend/openapi.yaml +++ b/openapi/backend/openapi.yaml @@ -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: