Bugzilla – Attachment 121284 Details for
Bug 28370
Routes still missing additionalProperties in spec
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28370: Add missing additionalProperties in spec
Bug-28370-Add-missing-additionalProperties-in-spec.patch (text/plain), 5.77 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-05-21 20:21:39 UTC
(
hide
)
Description:
Bug 28370: Add missing additionalProperties in spec
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-05-21 20:21:39 UTC
Size:
5.77 KB
patch
obsolete
>From 6cbaa5afaa1e163adba7b672a6a2e60dc15ce243 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 18 May 2021 10:03:11 -0300 >Subject: [PATCH] Bug 28370: Add missing additionalProperties in spec > >This patch adds missing attribute to the object definitions in the spec. >We wrongly supposed it was the default, but it proved not. > >To test: >1. Apply this patch >2. Run: > $ kshell > k$ prove t/db_dependent/api/v1 >=> SUCCESS: Tests pass, nothing breaks! >3. Sign off :-D > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > api/v1/swagger/paths/clubs.json | 3 ++- > api/v1/swagger/paths/import_batch_profiles.json | 8 +++++--- > api/v1/swagger/paths/patrons_extended_attributes.json | 3 ++- > api/v1/swagger/paths/patrons_password.json | 3 ++- > api/v1/swagger/paths/public_patrons.json | 11 +++++++---- > api/v1/swagger/paths/return_claims.json | 9 ++++++--- > 6 files changed, 24 insertions(+), 13 deletions(-) > >diff --git a/api/v1/swagger/paths/clubs.json b/api/v1/swagger/paths/clubs.json >index 3da704f3eb7..32862074d39 100644 >--- a/api/v1/swagger/paths/clubs.json >+++ b/api/v1/swagger/paths/clubs.json >@@ -44,7 +44,8 @@ > "type": "integer" > } > }, >- "required": [ "pickup_library_id" ] >+ "required": [ "pickup_library_id" ], >+ "additionalProperties": false > } > } > ], >diff --git a/api/v1/swagger/paths/import_batch_profiles.json b/api/v1/swagger/paths/import_batch_profiles.json >index 588a67d6e4c..14853ab4ba4 100644 >--- a/api/v1/swagger/paths/import_batch_profiles.json >+++ b/api/v1/swagger/paths/import_batch_profiles.json >@@ -130,7 +130,8 @@ > "description": "any comments added when the file was uploaded", > "type": ["string", "null"] > } >- } >+ }, >+ "additionalProperties": false > } > } > ], >@@ -250,7 +251,8 @@ > "description": "any comments added when the file was uploaded", > "type": ["string", "null"] > } >- } >+ }, >+ "additionalProperties": false > } > } > ], >@@ -357,4 +359,4 @@ > } > } > } >-} >\ No newline at end of file >+} >diff --git a/api/v1/swagger/paths/patrons_extended_attributes.json b/api/v1/swagger/paths/patrons_extended_attributes.json >index 0f9201b9ca2..d8af0f3b4bf 100644 >--- a/api/v1/swagger/paths/patrons_extended_attributes.json >+++ b/api/v1/swagger/paths/patrons_extended_attributes.json >@@ -281,7 +281,8 @@ > "description": "Extended attribute value", > "type": "string" > } >- } >+ }, >+ "additionalProperties": false > } > } > ], >diff --git a/api/v1/swagger/paths/patrons_password.json b/api/v1/swagger/paths/patrons_password.json >index 7384f76f172..2de2e29c923 100644 >--- a/api/v1/swagger/paths/patrons_password.json >+++ b/api/v1/swagger/paths/patrons_password.json >@@ -26,7 +26,8 @@ > "type": "string" > } > }, >- "required": ["password", "password_2"] >+ "required": ["password", "password_2"], >+ "additionalProperties": false > } > } > ], >diff --git a/api/v1/swagger/paths/public_patrons.json b/api/v1/swagger/paths/public_patrons.json >index 5db073c4eb4..7b424d964fe 100644 >--- a/api/v1/swagger/paths/public_patrons.json >+++ b/api/v1/swagger/paths/public_patrons.json >@@ -34,7 +34,8 @@ > "password", > "password_repeated", > "old_password" >- ] >+ ], >+ "additionalProperties": false > } > } > ], >@@ -109,7 +110,8 @@ > "allowed": { > "type": "boolean" > } >- } >+ }, >+ "additionalProperties": false > } > } > ], >@@ -184,7 +186,8 @@ > "allowed": { > "type": "boolean" > } >- } >+ }, >+ "additionalProperties": false > } > } > ], >@@ -237,4 +240,4 @@ > } > } > } >-} >\ No newline at end of file >+} >diff --git a/api/v1/swagger/paths/return_claims.json b/api/v1/swagger/paths/return_claims.json >index 2c1046d1363..6e48eae30d0 100644 >--- a/api/v1/swagger/paths/return_claims.json >+++ b/api/v1/swagger/paths/return_claims.json >@@ -34,7 +34,8 @@ > "description": "Charge a lost fee if true and Koha is set to allow a choice. Ignored otherwise.", > "type": "boolean" > } >- } >+ }, >+ "additionalProperties": false > } > } > ], >@@ -133,7 +134,8 @@ > "description": "Interal identifier for the librarian updating the claim notes", > "type": "string" > } >- } >+ }, >+ "additionalProperties": false > } > } > ], >@@ -300,7 +302,8 @@ > "description": "User id for the librarian resolving the claim", > "type": "string" > } >- } >+ }, >+ "additionalProperties": false > } > } > ], >-- >2.31.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28370
:
121110
|
121134
|
121232
|
121270
| 121284 |
121285
|
121286
|
121287
|
121289