@xyd-js/openapi 0.0.0-build-c348243-20251013000932 → 0.0.0-build-56377ca-20251013180714

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": "@xyd-js/openapi",
3
- "version": "0.0.0-build-c348243-20251013000932",
3
+ "version": "0.0.0-build-56377ca-20251013180714",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",
@@ -11,8 +11,8 @@
11
11
  "js-yaml": "^4.1.0",
12
12
  "oas": "^25.0.3",
13
13
  "openapi-types": "^12.1.3",
14
- "@xyd-js/openapi-sampler": "0.0.0-build-c348243-20251013000932",
15
- "@xyd-js/uniform": "0.0.0-build-c348243-20251013000932"
14
+ "@xyd-js/openapi-sampler": "0.0.0-build-56377ca-20251013180714",
15
+ "@xyd-js/uniform": "0.0.0-build-56377ca-20251013180714"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/js-yaml": "^4.0.9",
@@ -69,7 +69,7 @@ export function oapSchemaToReferences(
69
69
  if (reference) {
70
70
  const ctx = reference.context as OpenAPIReferenceContext
71
71
  ctx.path = endpointPath
72
- if (!ctx.fullPath) {
72
+ if (!ctx.fullPath && server) {
73
73
  const u = new URL(server)
74
74
  u.pathname = path.join(u.pathname, endpointPath)
75
75
  ctx.fullPath = decodeURIComponent(u.toString())