fumadocs-openapi 3.1.2 → 3.1.3

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -182,8 +182,10 @@ function createEndpoint(path, method, baseUrl) {
182
182
  toSampleInput(value)
183
183
  );
184
184
  }
185
+ if (queryParams.size > 0)
186
+ pathWithParameters = `${pathWithParameters}?${queryParams.toString()}`;
185
187
  return {
186
- url: new URL(pathWithParameters, baseUrl).toString(),
188
+ url: new URL(`${baseUrl}${pathWithParameters}`).toString(),
187
189
  body: bodySchema ? generateInput(method.method, bodySchema) : void 0,
188
190
  responses,
189
191
  method: method.method,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-openapi",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "Generate MDX docs for your OpenAPI spec",
5
5
  "keywords": [
6
6
  "NextJs",