mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-24 23:59:16 -04:00
[o2k] fix targets not getting tags (#3320)
This commit is contained in:
1 parent
cde2516a8b
commit
84e47da5f2
12 files changed
+59
-9
No files matched your search
@@ -44,7 +44,12 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"targets": [{"target": "backend.com:80"}]
|
||||
"targets": [
|
||||
{
|
||||
"target": "backend.com:80",
|
||||
"tags": ["OAS3_import", "OAS3file_api-with-examples.yaml"]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"_format_version": "1.1"
|
||||
|
||||
@@ -23,7 +23,12 @@
|
||||
{
|
||||
"tags": ["OAS3_import", "OAS3file_callback-example.yaml"],
|
||||
"name": "Callback_Example",
|
||||
"targets": [{"target": "backend.com:80"}]
|
||||
"targets": [
|
||||
{
|
||||
"target": "backend.com:80",
|
||||
"tags": ["OAS3_import", "OAS3file_callback-example.yaml"]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"_format_version": "1.1"
|
||||
|
||||
@@ -221,7 +221,15 @@
|
||||
{
|
||||
"tags": ["OAS3_import", "OAS3file_httpbin.yaml"],
|
||||
"name": "httpbin",
|
||||
"targets": [{"target": "httpbin.org:443"}, {"target": "eu.httpbin.org:443"}]
|
||||
"targets": [
|
||||
{
|
||||
"target": "httpbin.org:443",
|
||||
"tags": ["OAS3_import", "OAS3file_httpbin.yaml"]
|
||||
}, {
|
||||
"target": "eu.httpbin.org:443",
|
||||
"tags": ["OAS3_import", "OAS3file_httpbin.yaml"]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"_format_version": "1.1"
|
||||
|
||||
@@ -62,7 +62,12 @@
|
||||
{
|
||||
"tags": ["OAS3_import", "OAS3file_link-example.yaml"],
|
||||
"name": "Link_Example",
|
||||
"targets": [{"target": "backend.com:80"}]
|
||||
"targets": [
|
||||
{
|
||||
"target": "backend.com:80",
|
||||
"tags": ["OAS3_import", "OAS3file_link-example.yaml"]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"_format_version": "1.1"
|
||||
|
||||
@@ -44,7 +44,12 @@
|
||||
{
|
||||
"tags": ["OAS3_import", "OAS3file_petstore-expanded.yaml"],
|
||||
"name": "Swagger_Petstore",
|
||||
"targets": [{"target": "petstore.swagger.io:80"}]
|
||||
"targets": [
|
||||
{
|
||||
"target": "petstore.swagger.io:80",
|
||||
"tags": ["OAS3_import", "OAS3file_petstore-expanded.yaml"]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"_format_version": "1.1"
|
||||
|
||||
@@ -37,7 +37,12 @@
|
||||
{
|
||||
"tags": ["OAS3_import", "OAS3file_petstore.yaml"],
|
||||
"name": "Swagger_Petstore",
|
||||
"targets": [{"target": "petstore.swagger.io:80"}]
|
||||
"targets": [
|
||||
{
|
||||
"target": "petstore.swagger.io:80",
|
||||
"tags": ["OAS3_import", "OAS3file_petstore.yaml"]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"_format_version": "1.1"
|
||||
|
||||
@@ -122,7 +122,11 @@
|
||||
],
|
||||
"targets": [
|
||||
{
|
||||
"target": "backend.com:80"
|
||||
"target": "backend.com:80",
|
||||
"tags": [
|
||||
"OAS3_import",
|
||||
"OAS3file_request-validator-plugin.yaml"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -76,7 +76,12 @@
|
||||
{
|
||||
"tags": ["OAS3_import", "OAS3file_security.yaml"],
|
||||
"name": "Security_Example",
|
||||
"targets": [{"target": "backend.com:80"}]
|
||||
"targets": [
|
||||
{
|
||||
"target": "backend.com:80",
|
||||
"tags": ["OAS3_import", "OAS3file_security.yaml"]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"_format_version": "1.1"
|
||||
|
||||
@@ -37,7 +37,12 @@
|
||||
{
|
||||
"tags": ["OAS3_import", "OAS3file_uspto.yaml"],
|
||||
"name": "USPTO_Data_Set_API",
|
||||
"targets": [{"target": "developer.uspto.gov:443"}]
|
||||
"targets": [
|
||||
{
|
||||
"target": "developer.uspto.gov:443",
|
||||
"tags": ["OAS3_import", "OAS3file_uspto.yaml"]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"_format_version": "1.1"
|
||||
|
||||
@@ -11,6 +11,7 @@ const getSpecResult = () =>
|
||||
targets: [
|
||||
{
|
||||
target: 'server1.com:443',
|
||||
tags: ['Tag'],
|
||||
},
|
||||
],
|
||||
tags: ['Tag'],
|
||||
|
||||
@@ -32,6 +32,7 @@ export function generateUpstreams(api: OpenApi3Spec, tags: Array<string>) {
|
||||
if (hostWithPort) {
|
||||
upstream.targets.push({
|
||||
target: hostWithPort,
|
||||
tags,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ declare type DCService = {|
|
||||
|
||||
declare type DCTarget = {|
|
||||
target: string,
|
||||
tags: Array<string>,
|
||||
|};
|
||||
|
||||
declare type DCUpstream = {|
|
||||
|
||||
Reference in new issue
Block a user