Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
capif
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OCF
capif
Commits
aade85c8
Commit
aade85c8
authored
1 month ago
by
guillecxb
Browse files
Options
Downloads
Patches
Plain Diff
field validation
parent
eee424da
No related branches found
No related tags found
1 merge request
!117
Resolve "Provider Management API supported feature negotiation"
Checking pipeline status
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
services/TS29222_CAPIF_API_Provider_Management_API/api_provider_management/core/provider_enrolment_details_api.py
+7
-0
7 additions, 0 deletions
...rovider_management/core/provider_enrolment_details_api.py
with
7 additions
and
0 deletions
services/TS29222_CAPIF_API_Provider_Management_API/api_provider_management/core/provider_enrolment_details_api.py
+
7
−
0
View file @
aade85c8
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment