You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update multi-point-vpn API spec
Fix typos and improve schemas/consistency in multi-point-vpn spec.
* Add validation constraints to API schema
Update multi-point-vpn OpenAPI definition to improve input validation:
* Tighten field validation: uri->pattern, add ip
Replace loose 'format: uri' validation with a stricter regex pattern ('^[A-Za-z0-9\\-_.]{1,2048}$') for the resource URL and connection location fields, while keeping the maxLength constraint. Also add 'format: ip' to cloudGatewayIp to explicitly mark it as an IP address. These changes tighten input validation in code/API_definitions/multi-point-vpn.yaml.
Copy file name to clipboardExpand all lines: code/API_definitions/multi-point-vpn.yaml
+39-16Lines changed: 39 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ info:
20
20
21
21
* Physical Location Physical location of the Customer Edge Router.
22
22
23
-
NOTE- The private physical link between CE and cloud PE is default deployed for one click calling, otherwise it is required to install the physical link, which is out of the scope of this API.
23
+
NOTE: The private physical link between CE and cloud PE is default deployed for one click calling, otherwise it is required to install the physical link, which is out of the scope of this API.
24
24
25
25
# Available scopes
26
26
@@ -106,6 +106,12 @@ paths:
106
106
headers:
107
107
x-correlator:
108
108
$ref: "#/components/headers/x-correlator"
109
+
Location:
110
+
description: URL of the newly created network resource
111
+
schema:
112
+
type: string
113
+
pattern: '^[A-Za-z0-9\\-_.]{1,2048}$'
114
+
maxLength: 2048
109
115
content:
110
116
application/json:
111
117
schema:
@@ -126,7 +132,7 @@ paths:
126
132
tags:
127
133
- Network
128
134
summary: To update a multipoint virtual private network
129
-
description: Update a new multipoint virtual private network
135
+
description: Update a multipoint virtual private network
0 commit comments