-
Notifications
You must be signed in to change notification settings - Fork 2
Update installation docs #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
@alpheusmtx is attempting to deploy a commit to the rhinobase Team on Vercel. A member of the Team first needs to authorize it. |
|
Just FYI, the above instructions do not work. If installed as described as in this PR, we get: If then you install If you install Even though the same schema works fine with peer dep installs enabled. |
The RC version of According to the error log you provided, it seems like you are using the mismatched version of pnpm add @standard-community/standard-openapi@rcHowever, they may release an official version later. Therefore, I didn't add |
|
Good to know what the root cause is, but then this PR should wait until an
official release, as the instructions, as written, result in a broken
state.
…On Tue, Sep 9, 2025, 20:08 Alpheus ***@***.***> wrote:
*alpheusmtx* left a comment (rhinobase/docs#2)
<#2 (comment)>
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 ***@***.******@***.******@***.******@***.******@***.***/standard-openapi/dist/default-PnsbTDiK.js
If then you install ***@***.*** 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 ***@***.******@***.******@***.***/node_modules/json-schema-walker/dist/index.js:52:41)
at convert ***@***.******@***.******@***.******@***.******@***.***/standard-openapi/dist/default-PnsbTDiK.js:1:1320)
at Module.generator ***@***.******@***.******@***.******@***.******@***.***/standard-openapi/dist/default-PnsbTDiK.js:1:4132)
at toOpenAPISchema ***@***.******@***.******@***.******@***.******@***.***/standard-openapi/dist/index.js:1:373)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at getSpec ***@***.******@***.******@***.******@***.******@***.***+stand_75e4285ad4f57082d28131395c6bf5d0/node_modules/hono-openapi/dist/index.js:317:29)
at generatePaths ***@***.******@***.******@***.******@***.******@***.***+stand_75e4285ad4f57082d28131395c6bf5d0/node_modules/hono-openapi/dist/index.js:273:53)
at generateSpecs ***@***.******@***.******@***.******@***.******@***.***+stand_75e4285ad4f57082d28131395c6bf5d0/node_modules/hono-openapi/dist/index.js:213:17)
If you install ***@***.*** it fails with:
ToJsonSchemaError: {
code: "morph",
base: {
type: "string",
pattern: "^(?:(?!^-0$)-?(?:(?:0|[1-9]\\d*)))$"
},
out: null
}
at Object.throw ***@***.******@***.******@***.***/schema/out/shared/toJsonSchema.js:35:15)
at Object.morph ***@***.******@***.******@***.***/schema/out/shared/toJsonSchema.js:23:41)
at MorphNode.innerToJsonSchema ***@***.******@***.******@***.***/schema/out/roots/morph.js:120:29)
at MorphNode.toResolvedJsonSchema ***@***.******@***.******@***.***/schema/out/roots/root.js:76:29)
at MorphNode.toJsonSchemaRecurse ***@***.******@***.******@***.***/schema/out/roots/root.js:68:21)
at SequenceNode.reduceJsonSchema ***@***.******@***.******@***.***/schema/out/structure/sequence.js:321:38)
at StructureNode.reduceJsonSchema ***@***.******@***.******@***.***/schema/out/structure/structure.js:523:52)
at ***@***.******@***.******@***.***/schema/out/roots/intersection.js:170:21
at Array.reduce (<anonymous>)
at IntersectionNode.innerToJsonSchema ***@***.******@***.******@***.***/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 @***@***.***
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.
—
Reply to this email directly, view it on GitHub
<#2 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABROH5LGXBL35KJXRX4PVL3R4CP5AVCNFSM6AAAAACF7RCRJGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTENZRGU4DCNZWGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Update the installation docs based on the issue in
hono-openapi.