Skip to content

Commit 2935e72

Browse files
committed
chore(swagger): make it explicit when an object can have extra fields
To implement a strict API validation, let's annotate when extra fields are actually expected. Signed-off-by: Riccardo Mancini <[email protected]>
1 parent 2a2b892 commit 2935e72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/firecracker/swagger/firecracker.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ paths:
482482
description: The MMDS data store JSON.
483483
schema:
484484
type: object
485+
additionalProperties: true
485486
404:
486487
description: The MMDS data store content can not be found.
487488
schema:
@@ -1316,6 +1317,7 @@ definitions:
13161317
type: object
13171318
description:
13181319
Describes the contents of MMDS in JSON format.
1320+
additionalProperties: true
13191321

13201322
NetworkInterface:
13211323
type: object

0 commit comments

Comments
 (0)