From a8b98292dcaf3b48d07bbbddfd7e94c6c496b9d5 Mon Sep 17 00:00:00 2001 From: David Cook Date: Wed, 17 Jul 2024 10:46:08 -0500 Subject: [PATCH] Update OpenAPI schema --- documentation/openapi.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/documentation/openapi.yml b/documentation/openapi.yml index 39638944..447fe661 100644 --- a/documentation/openapi.yml +++ b/documentation/openapi.yml @@ -13,7 +13,7 @@ info: license: name: MPL-2.0 url: https://www.mozilla.org/en-US/MPL/2.0/ - version: "0.1" + version: "0.4" externalDocs: description: The Divvi Up API repository url: https://github.com/divviup/divviup-api @@ -805,6 +805,25 @@ components: type: string chunk_length: type: number + dp_strategy: + type: object + properties: + dp_strategy: + type: string + enum: [NoDifferentialPrivacy, PureDpDiscreteLaplace] + budget: + type: object + properties: + epsilon: + type: array + minItems: 2 + maxItems: 2 + items: + type: array + items: + type: number + minimum: 0 + maximum: 4294967295 required: [type] ApiToken: type: object