@omnigraph/openapi 1.0.0-alpha-20230424113259-560b18922 → 1.0.0-alpha-20230522105300-fe9c79867
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -123,11 +123,13 @@ async function getJSONSchemaOptionsFromOpenAPIOptions(name, { source, fallbackFo
|
|
|
123
123
|
operationConfig.queryStringOptionsByParam[paramObj.name].destructObject = true;
|
|
124
124
|
}
|
|
125
125
|
else {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
switch (paramObj.style) {
|
|
127
|
+
case 'form':
|
|
128
|
+
case 'simple': // simple is not intended for a query param but seems to be used in some APIs
|
|
129
|
+
operationConfig.queryStringOptionsByParam[paramObj.name].arrayFormat = 'comma';
|
|
130
|
+
break;
|
|
131
|
+
default:
|
|
132
|
+
logger.warn(`Other styles including ${paramObj.style} of query parameters are not supported yet.`);
|
|
131
133
|
}
|
|
132
134
|
}
|
|
133
135
|
}
|
|
@@ -120,11 +120,13 @@ export async function getJSONSchemaOptionsFromOpenAPIOptions(name, { source, fal
|
|
|
120
120
|
operationConfig.queryStringOptionsByParam[paramObj.name].destructObject = true;
|
|
121
121
|
}
|
|
122
122
|
else {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
123
|
+
switch (paramObj.style) {
|
|
124
|
+
case 'form':
|
|
125
|
+
case 'simple': // simple is not intended for a query param but seems to be used in some APIs
|
|
126
|
+
operationConfig.queryStringOptionsByParam[paramObj.name].arrayFormat = 'comma';
|
|
127
|
+
break;
|
|
128
|
+
default:
|
|
129
|
+
logger.warn(`Other styles including ${paramObj.style} of query parameters are not supported yet.`);
|
|
128
130
|
}
|
|
129
131
|
}
|
|
130
132
|
}
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnigraph/openapi",
|
|
3
|
-
"version": "1.0.0-alpha-
|
|
3
|
+
"version": "1.0.0-alpha-20230522105300-fe9c79867",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@graphql-mesh/cross-helpers": "
|
|
7
|
-
"@graphql-mesh/types": "1.0.0-alpha-
|
|
8
|
-
"@graphql-mesh/utils": "1.0.0-alpha-
|
|
6
|
+
"@graphql-mesh/cross-helpers": "0.4.0-alpha-20230522105300-fe9c79867",
|
|
7
|
+
"@graphql-mesh/types": "1.0.0-alpha-20230522105300-fe9c79867",
|
|
8
|
+
"@graphql-mesh/utils": "1.0.0-alpha-20230522105300-fe9c79867",
|
|
9
9
|
"graphql": "*",
|
|
10
10
|
"tslib": "^2.4.0"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@graphql-mesh/string-interpolation": "
|
|
14
|
-
"@omnigraph/json-schema": "1.0.0-alpha-
|
|
13
|
+
"@graphql-mesh/string-interpolation": "0.5.0-alpha-20230522105300-fe9c79867",
|
|
14
|
+
"@omnigraph/json-schema": "1.0.0-alpha-20230522105300-fe9c79867",
|
|
15
15
|
"change-case": "^4.1.2",
|
|
16
|
-
"json-machete": "1.0.0-alpha-
|
|
16
|
+
"json-machete": "1.0.0-alpha-20230522105300-fe9c79867",
|
|
17
17
|
"openapi-types": "^12.1.0"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|