Commit aade85c8 authored by guillecxb's avatar guillecxb
Browse files

field validation

parent eee424da
Loading
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -66,6 +66,13 @@ class ProviderManagementOperations(Resource):
            api_provider_enrolment_details.api_prov_dom_id = secrets.token_hex(
            api_provider_enrolment_details.api_prov_dom_id = secrets.token_hex(
                15)
                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
            # Supported Features Negotiation
            client_feat = api_provider_enrolment_details.supp_feat
            client_feat = api_provider_enrolment_details.supp_feat
            negotiated_hex = negotiate_supported_features_hex(client_feat)
            negotiated_hex = negotiate_supported_features_hex(client_feat)