Skip to content
Snippets Groups Projects
Commit aade85c8 authored by guillecxb's avatar guillecxb
Browse files

field validation

parent eee424da
No related branches found
No related tags found
1 merge request!117Resolve "Provider Management API supported feature negotiation"
Checking pipeline status
......@@ -66,6 +66,13 @@ class ProviderManagementOperations(Resource):
api_provider_enrolment_details.api_prov_dom_id = secrets.token_hex(
15)
if api_provider_enrolment_details.supp_feat is None:
return bad_request_error(
detail="supportedFeatures not present in request",
cause="supportedFeatures not present",
invalid_params=[{"param": "supp_feat", "reason": "not defined"}]
)
# Supported Features Negotiation
client_feat = api_provider_enrolment_details.supp_feat
negotiated_hex = negotiate_supported_features_hex(client_feat)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment