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
Copy file name to clipboardExpand all lines: com.reprezen.swagedit.openapi3.tests/src/com/reprezen/swagedit/openapi3/validation/ReferenceValidatorTest.xtend
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -136,15 +136,20 @@ class ReferenceValidatorTest {
136
136
/foo/{bar}:
137
137
get:
138
138
parameters:
139
-
- $ref: '#/paths/~1foo~1%7Bbar%7D'
139
+
- $ref: '#/components/parameters/bar'
140
140
responses:
141
141
'200':
142
142
description: OK
143
+
components:
144
+
parameters:
145
+
bar:
146
+
name: bar
147
+
in: path
143
148
'''
144
149
145
150
document.set(content)
146
151
val baseURI =newURI(null, null, null)
147
-
val resolvedURI =newURI(null, null, "/paths/~1foo~1{bar}")
152
+
val resolvedURI =newURI(null, null, "/components/parameters/bar")
148
153
val errors = validator(#{resolvedURI -> document.asJson}).validate(baseURI, document)
0 commit comments