@stackql/provider-utils 0.3.6 → 0.3.7

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackql/provider-utils",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Utilities for building StackQL providers from OpenAPI specifications.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -166,6 +166,13 @@ function getPathLevelRefs(pathItem) {
166
166
  for (const param of pathItem.parameters) {
167
167
  if (param.$ref) {
168
168
  refs.add(param.$ref);
169
+ if (param.$ref.includes('/parameters/')) {
170
+ // Make sure we catch all parameters, especially path parameters
171
+ const paramName = param.$ref.split('/').pop();
172
+ if (paramName) {
173
+ refs.add(`#/components/parameters/${paramName}`);
174
+ }
175
+ }
169
176
  } else if (typeof param === 'object') {
170
177
  // Extract refs from schema if present
171
178
  for (const ref of getAllRefs(param)) {
@@ -175,15 +182,6 @@ function getPathLevelRefs(pathItem) {
175
182
  }
176
183
  }
177
184
 
178
- // Check other non-operation fields
179
- for (const [key, value] of Object.entries(pathItem)) {
180
- if (!OPERATIONS.includes(key) && typeof value === 'object') {
181
- for (const ref of getAllRefs(value)) {
182
- refs.add(ref);
183
- }
184
- }
185
- }
186
-
187
185
  return refs;
188
186
  }
189
187