Skip to content

Commit fbd2bde

Browse files
committed
Use StrictJSONModel for service join requests
1 parent 7e9fe45 commit fbd2bde

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/models/service.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
SIGN_IN_METHOD_TEXT,
1414
SIGN_IN_METHOD_TEXT_OR_EMAIL,
1515
)
16-
from app.models import JSONModel
16+
from app.models import JSONModel, StrictJSONModel
1717
from app.models.api_key import APIKeys
1818
from app.models.branding import EmailBranding, LetterBranding
1919
from app.models.contact_list import ContactLists
@@ -680,7 +680,7 @@ class Services(SerialisedModelCollection):
680680
model = Service
681681

682682

683-
class ServiceJoinRequest(JSONModel):
683+
class ServiceJoinRequest(StrictJSONModel):
684684
id: Any
685685
requester: Any
686686
service_id: Any
@@ -690,8 +690,6 @@ class ServiceJoinRequest(JSONModel):
690690
reason: str
691691
status: str
692692
contacted_service_users: list[str]
693-
requested_service: Any
694-
permissions: list[str]
695693

696694
__sort_attribute__ = "id"
697695

0 commit comments

Comments
 (0)