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)) {
|
if (REQUEST_BODY_CONTAINER.includes(item)) {
|
||||||
item = 'requestBodies';
|
item = 'requestBodies';
|
||||||
}
|
}
|
||||||
if (LINKS_CONTAINER.includes(item)) {
|
if (LINKS_CONTAINER.includes(trace[index + 2])) {
|
||||||
item = 'links';
|
trace[index + 1] = 'links';
|
||||||
}
|
}
|
||||||
if (PROPERTY_DEFINITION.includes(trace[index + 2])) {
|
if (PROPERTY_DEFINITION.includes(trace[index + 2])) {
|
||||||
trace[index + 1] = 'schemas';
|
trace[index + 1] = 'schemas';
|
||||||
|
|||||||
@@ -30,12 +30,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"links": {
|
"links": {
|
||||||
|
"theLinkId": {
|
||||||
"$ref": "#/components/links/_link.yaml"
|
"$ref": "#/components/links/_link.yaml"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"components": {
|
"components": {
|
||||||
"schemas": {
|
"schemas": {
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ paths:
|
|||||||
items:
|
items:
|
||||||
$ref: "#/components/schemas/Pet"
|
$ref: "#/components/schemas/Pet"
|
||||||
links:
|
links:
|
||||||
|
theLinkId:
|
||||||
$ref: "./link.yaml"
|
$ref: "./link.yaml"
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
|
|||||||
Reference in New Issue
Block a user