@omnigraph/openapi 1.0.0-alpha-20230424113259-560b18922 → 1.0.0-alpha-20230522110904-130abe0f9

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
- if (paramObj.style === 'form') {
127
- operationConfig.queryStringOptionsByParam[paramObj.name].arrayFormat = 'comma';
128
- }
129
- else {
130
- logger.warn(`Other styles including ${paramObj.style} of query parameters are not supported yet.`);
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
- if (paramObj.style === 'form') {
124
- operationConfig.queryStringOptionsByParam[paramObj.name].arrayFormat = 'comma';
125
- }
126
- else {
127
- logger.warn(`Other styles including ${paramObj.style} of query parameters are not supported yet.`);
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-20230424113259-560b18922",
3
+ "version": "1.0.0-alpha-20230522110904-130abe0f9",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@graphql-mesh/cross-helpers": "^0.3.4",
7
- "@graphql-mesh/types": "1.0.0-alpha-20230424113259-560b18922",
8
- "@graphql-mesh/utils": "1.0.0-alpha-20230424113259-560b18922",
6
+ "@graphql-mesh/cross-helpers": "0.4.0-alpha-20230522110904-130abe0f9",
7
+ "@graphql-mesh/types": "1.0.0-alpha-20230522110904-130abe0f9",
8
+ "@graphql-mesh/utils": "1.0.0-alpha-20230522110904-130abe0f9",
9
9
  "graphql": "*",
10
10
  "tslib": "^2.4.0"
11
11
  },
12
12
  "dependencies": {
13
- "@graphql-mesh/string-interpolation": "^0.4.4",
14
- "@omnigraph/json-schema": "1.0.0-alpha-20230424113259-560b18922",
13
+ "@graphql-mesh/string-interpolation": "0.5.0-alpha-20230522110904-130abe0f9",
14
+ "@omnigraph/json-schema": "1.0.0-alpha-20230522110904-130abe0f9",
15
15
  "change-case": "^4.1.2",
16
- "json-machete": "1.0.0-alpha-20230424113259-560b18922",
16
+ "json-machete": "1.0.0-alpha-20230522110904-130abe0f9",
17
17
  "openapi-types": "^12.1.0"
18
18
  },
19
19
  "repository": {