Jonathan Druart
14ab5abf44
Some of our definition files are missing { additionalProperties: false } We must have it to make sure all properties are defined and prevent the spec to accept extra parameters (being more strict but also allowing to catch errors more easily) grep -rL additionalProperties api/v1/swagger/definitions/*.json Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
7 lines
97 B
JSON
7 lines
97 B
JSON
{
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "hold.json"
|
|
},
|
|
"additionalProperties": false
|
|
}
|