Skip to content

Conversation

@alpheusmtx
Copy link

Update the installation docs based on the issue in hono-openapi.

@vercel
Copy link

vercel bot commented Sep 9, 2025

@alpheusmtx is attempting to deploy a commit to the rhinobase Team on Vercel.

A member of the Team first needs to authorize it.

@VanTanev
Copy link

VanTanev commented Sep 9, 2025

Just FYI, the above instructions do not work.

If installed as described as in this PR, we get:

Error: Cannot find package 'json-schema-walker' imported from /master/node_modules/.pnpm/@[email protected]_@[email protected]_859716ae41859367c6aae664cf13b79c/node_modules/@standard-community/standard-openapi/dist/default-PnsbTDiK.js

If then you install json-schema-walker@3 it fails with:

DOMException [DataCloneError]: #<Promise> could not be cloned.
    at new DOMException (node:internal/per_context/domexception:66:5)
    at structuredClone (node:internal/worker/js_transferable:126:26)
    at Walker.loadSchema (/master/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/json-schema-walker/dist/index.js:52:41)
    at convert (file:///master/node_modules/.pnpm/@[email protected]_@[email protected]_9c3d5eff014910f9aca8c3c771bc4c59/node_modules/@standard-community/standard-openapi/dist/default-PnsbTDiK.js:1:1320)
    at Module.generator (file:///master/node_modules/.pnpm/@[email protected]_@[email protected]_9c3d5eff014910f9aca8c3c771bc4c59/node_modules/@standard-community/standard-openapi/dist/default-PnsbTDiK.js:1:4132)
    at toOpenAPISchema (file:///master/node_modules/.pnpm/@[email protected]_@[email protected]_9c3d5eff014910f9aca8c3c771bc4c59/node_modules/@standard-community/standard-openapi/dist/index.js:1:373)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at getSpec (file:///master/node_modules/.pnpm/[email protected]_@[email protected][email protected]__@standard-community+stand_75e4285ad4f57082d28131395c6bf5d0/node_modules/hono-openapi/dist/index.js:317:29)
    at generatePaths (file:///master/node_modules/.pnpm/[email protected]_@[email protected][email protected]__@standard-community+stand_75e4285ad4f57082d28131395c6bf5d0/node_modules/hono-openapi/dist/index.js:273:53)
    at generateSpecs (file:///master/node_modules/.pnpm/[email protected]_@[email protected][email protected]__@standard-community+stand_75e4285ad4f57082d28131395c6bf5d0/node_modules/hono-openapi/dist/index.js:213:17)

If you install json-schema-walker@1-2 it fails with:

ToJsonSchemaError: {
    code: "morph",
    base: {
        type: "string",
        pattern: "^(?:(?!^-0$)-?(?:(?:0|[1-9]\\d*)))$"
    },
    out: null
}
    at Object.throw (file:///master/node_modules/.pnpm/@[email protected]/node_modules/@ark/schema/out/shared/toJsonSchema.js:35:15)
    at Object.morph (file:///master/node_modules/.pnpm/@[email protected]/node_modules/@ark/schema/out/shared/toJsonSchema.js:23:41)
    at MorphNode.innerToJsonSchema (file:///master/node_modules/.pnpm/@[email protected]/node_modules/@ark/schema/out/roots/morph.js:120:29)
    at MorphNode.toResolvedJsonSchema (file:///master/node_modules/.pnpm/@[email protected]/node_modules/@ark/schema/out/roots/root.js:76:29)
    at MorphNode.toJsonSchemaRecurse (file:///master/node_modules/.pnpm/@[email protected]/node_modules/@ark/schema/out/roots/root.js:68:21)
    at SequenceNode.reduceJsonSchema (file:///master/node_modules/.pnpm/@[email protected]/node_modules/@ark/schema/out/structure/sequence.js:321:38)
    at StructureNode.reduceJsonSchema (file:///master/node_modules/.pnpm/@[email protected]/node_modules/@ark/schema/out/structure/structure.js:523:52)
    at file:///master/node_modules/.pnpm/@[email protected]/node_modules/@ark/schema/out/roots/intersection.js:170:21
    at Array.reduce (<anonymous>)
    at IntersectionNode.innerToJsonSchema (file:///master/node_modules/.pnpm/@[email protected]/node_modules/@ark/schema/out/roots/intersection.js:166:30) {
  code: 'morph',
  context: {
    code: 'morph',
    base: { type: 'string', pattern: '^(?:(?!^-0$)-?(?:(?:0|[1-9]\\d*)))$' },
    out: null
  }
}

Even though the same schema works fine with peer dep installs enabled.

@alpheusmtx
Copy link
Author

Just FYI, the above instructions do not work.

If installed as described as in this PR, we get:

Error: Cannot find package 'json-schema-walker' imported from /master/node_modules/.pnpm/@[email protected]_@[email protected]_859716ae41859367c6aae664cf13b79c/node_modules/@standard-community/standard-openapi/dist/default-PnsbTDiK.js

If then you install json-schema-walker@3 it fails with:

DOMException [DataCloneError]: #<Promise> could not be cloned.
    at new DOMException (node:internal/per_context/domexception:66:5)
    at structuredClone (node:internal/worker/js_transferable:126:26)
    at Walker.loadSchema (/master/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/json-schema-walker/dist/index.js:52:41)
    at convert (file:///master/node_modules/.pnpm/@[email protected]_@[email protected]_9c3d5eff014910f9aca8c3c771bc4c59/node_modules/@standard-community/standard-openapi/dist/default-PnsbTDiK.js:1:1320)
    at Module.generator (file:///master/node_modules/.pnpm/@[email protected]_@[email protected]_9c3d5eff014910f9aca8c3c771bc4c59/node_modules/@standard-community/standard-openapi/dist/default-PnsbTDiK.js:1:4132)
    at toOpenAPISchema (file:///master/node_modules/.pnpm/@[email protected]_@[email protected]_9c3d5eff014910f9aca8c3c771bc4c59/node_modules/@standard-community/standard-openapi/dist/index.js:1:373)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at getSpec (file:///master/node_modules/.pnpm/[email protected]_@[email protected][email protected]__@standard-community+stand_75e4285ad4f57082d28131395c6bf5d0/node_modules/hono-openapi/dist/index.js:317:29)
    at generatePaths (file:///master/node_modules/.pnpm/[email protected]_@[email protected][email protected]__@standard-community+stand_75e4285ad4f57082d28131395c6bf5d0/node_modules/hono-openapi/dist/index.js:273:53)
    at generateSpecs (file:///master/node_modules/.pnpm/[email protected]_@[email protected][email protected]__@standard-community+stand_75e4285ad4f57082d28131395c6bf5d0/node_modules/hono-openapi/dist/index.js:213:17)

If you install json-schema-walker@1-2 it fails with:

ToJsonSchemaError: {
    code: "morph",
    base: {
        type: "string",
        pattern: "^(?:(?!^-0$)-?(?:(?:0|[1-9]\\d*)))$"
    },
    out: null
}
    at Object.throw (file:///master/node_modules/.pnpm/@[email protected]/node_modules/@ark/schema/out/shared/toJsonSchema.js:35:15)
    at Object.morph (file:///master/node_modules/.pnpm/@[email protected]/node_modules/@ark/schema/out/shared/toJsonSchema.js:23:41)
    at MorphNode.innerToJsonSchema (file:///master/node_modules/.pnpm/@[email protected]/node_modules/@ark/schema/out/roots/morph.js:120:29)
    at MorphNode.toResolvedJsonSchema (file:///master/node_modules/.pnpm/@[email protected]/node_modules/@ark/schema/out/roots/root.js:76:29)
    at MorphNode.toJsonSchemaRecurse (file:///master/node_modules/.pnpm/@[email protected]/node_modules/@ark/schema/out/roots/root.js:68:21)
    at SequenceNode.reduceJsonSchema (file:///master/node_modules/.pnpm/@[email protected]/node_modules/@ark/schema/out/structure/sequence.js:321:38)
    at StructureNode.reduceJsonSchema (file:///master/node_modules/.pnpm/@[email protected]/node_modules/@ark/schema/out/structure/structure.js:523:52)
    at file:///master/node_modules/.pnpm/@[email protected]/node_modules/@ark/schema/out/roots/intersection.js:170:21
    at Array.reduce (<anonymous>)
    at IntersectionNode.innerToJsonSchema (file:///master/node_modules/.pnpm/@[email protected]/node_modules/@ark/schema/out/roots/intersection.js:166:30) {
  code: 'morph',
  context: {
    code: 'morph',
    base: { type: 'string', pattern: '^(?:(?!^-0$)-?(?:(?:0|[1-9]\\d*)))$' },
    out: null
  }
}

Even though the same schema works fine with peer dep installs enabled.

The RC version of @standard-community/standard-json and @standard-community/standard-openapi is required to use this package at the moment.

According to the error log you provided, it seems like you are using the mismatched version of @standard-community/standard-openapi. Consider installing the RC version:

pnpm add @standard-community/standard-openapi@rc

However, they may release an official version later. Therefore, I didn't add @rc to the @standard-community/standard-json and @standard-community/standard-openapi package in the docs.

@VanTanev
Copy link

VanTanev commented Sep 9, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants