Bug 28272: Prevent api spec to accept extra parameters
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 6 May 2021 13:11:51 +0000 (15:11 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 10 May 2021 08:28:02 +0000 (10:28 +0200)
commit14ab5abf442209e87701aa51b7c2ce79264031f1
treeeb831403373c347b6a8982d64adfdad7b9e6a191
parentb66fbf093505b61089e715d52c168c50172434f8
Bug 28272: Prevent api spec to accept extra parameters

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>
19 files changed:
api/v1/swagger/definitions/account_line.json
api/v1/swagger/definitions/allows_renewal.json
api/v1/swagger/definitions/basket.json
api/v1/swagger/definitions/cashup.json
api/v1/swagger/definitions/checkout.json
api/v1/swagger/definitions/checkouts.json
api/v1/swagger/definitions/club_hold.json
api/v1/swagger/definitions/club_hold_patron_hold.json
api/v1/swagger/definitions/club_hold_patron_holds.json
api/v1/swagger/definitions/club_holds.json
api/v1/swagger/definitions/error.json
api/v1/swagger/definitions/hold.json
api/v1/swagger/definitions/holds.json
api/v1/swagger/definitions/ill_backend.json
api/v1/swagger/definitions/ill_backends.json
api/v1/swagger/definitions/import_batch_profile.json
api/v1/swagger/definitions/import_batch_profiles.json
api/v1/swagger/definitions/patron_account_credit.json
api/v1/swagger/definitions/return_claim.json