mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
moving the link scenario to the correct rule while resolving it
- fixing the expected file - fixing the root file
This commit is contained in:
@@ -73,8 +73,8 @@ module.exports = {
|
||||
if (REQUEST_BODY_CONTAINER.includes(item)) {
|
||||
item = 'requestBodies';
|
||||
}
|
||||
if (LINKS_CONTAINER.includes(item)) {
|
||||
item = 'links';
|
||||
if (LINKS_CONTAINER.includes(trace[index + 2])) {
|
||||
trace[index + 1] = 'links';
|
||||
}
|
||||
if (PROPERTY_DEFINITION.includes(trace[index + 2])) {
|
||||
trace[index + 1] = 'schemas';
|
||||
|
||||
@@ -30,12 +30,14 @@
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"theLinkId": {
|
||||
"$ref": "#/components/links/_link.yaml"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"components": {
|
||||
"schemas": {
|
||||
|
||||
@@ -25,6 +25,7 @@ paths:
|
||||
items:
|
||||
$ref: "#/components/schemas/Pet"
|
||||
links:
|
||||
theLinkId:
|
||||
$ref: "./link.yaml"
|
||||
components:
|
||||
schemas:
|
||||
|
||||
Reference in New Issue
Block a user