fix(cli): host hyperframes.json schema so $schema resolves - #403
Closed
sebastianbreguel wants to merge 1 commit into
Closed
fix(cli): host hyperframes.json schema so $schema resolves#403sebastianbreguel wants to merge 1 commit into
sebastianbreguel wants to merge 1 commit into
Conversation
The URL in every generated hyperframes.json (https://hyperframes.heygen.com/schema/hyperframes.json) returned 404 because (a) the schema file didn't exist and (b) no copies of the three schemas were served from docs/public/. - Add packages/core/schemas/hyperframes.json describing ProjectConfig. - Mirror all three schemas (hyperframes, registry, registry-item) into docs/public/schema/ so Mintlify serves them at the expected URLs. - Add a drift test that fails if the mirrors ever diverge or if a schema's $id stops matching its public URL.
Collaborator
|
Hi @sebastianbreguel, the url https://hyperframes.heygen.com/schema/hyperframes.json is working fine, what issues did you have? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
hyperframes.jsonschema underpackages/core/schemasdocs/public/schemaso Mintlify serves the expected URLsWhy
The generated
hyperframes.jsonpointed athttps://hyperframes.heygen.com/schema/hyperframes.json, but that URL returned404because the schema was not being published from the docs site.Validation
bun test packages/core/src/registry/docs-schema-sync.test.ts