Skip to content

Commit 4e66961

Browse files
committed
Document arrays and booleans as parameter values
Swagger 2.0 does not support oneOf, see #988
1 parent 9d8f6ce commit 4e66961

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

openfisca_web_api/openAPI.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,11 @@ definitions:
303303
format: "float"
304304

305305
Values:
306+
description: All keys are ISO dates. Values can be numbers, booleans, or arrays of a single type (number, boolean or string).
306307
type: "object"
307-
additionalProperties:
308-
type: "number"
309-
format: "float"
308+
additionalProperties: true
309+
# propertyNames: # this keyword is part of JSON Schema but is not supported in OpenAPI Specification at the time of writing, see https://swagger.io/docs/specification/data-models/keywords/#unsupported
310+
# pattern: "^[12][0-9]{3}-[01][0-9]-[0-3][0-9]$" # all keys are ISO dates
310311

311312
Entities:
312313
type: "object"

0 commit comments

Comments
 (0)