chore(cli-v2): publish JSON Schema for fern.yml#15487
Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Open
chore(cli-v2): publish JSON Schema for fern.yml#15487devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Conversation
Generate a JSON Schema from the Zod FernYmlSchema using z.toJSONSchema() and commit it as fern-yml.schema.json so it can be served at https://schema.buildwithfern.dev/fern-yml.json for IDE integrations. - Add packages/cli/config/scripts/generate-jsonschema.mjs - Add fern-yml:jsonschema script to root package.json - Include fern-yml:jsonschema in the jsonschema aggregate script - Add unreleased changelog entry Co-Authored-By: federico <federico@buildwithfern.com>
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.
Tip: disable this comment in your organization's Code Review settings.
Contributor
🌱 Seed Test SelectorSelect languages to run seed tests for:
How to use: Click the ⋯ menu above → "Edit" → check the boxes you want → click "Update comment". Tests will run automatically and snapshots will be committed to this PR. |
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
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.
Description
Linear ticket: Closes FER-8474
Generate and publish a JSON Schema for
fern.yml(CLI v2 config) so that YAML language servers can provide autocomplete and validation in IDEs.The schema is generated from the Zod
FernYmlSchemausing Zod v4'stoJSONSchema()and committed asfern-yml.schema.json. Once merged, it will be served athttps://schema.buildwithfern.dev/fern-yml.json.The
fern initcommand in CLI v2 already emits the schema reference comment at the top of generatedfern.ymlfiles:# yaml-language-server: $schema=https://schema.buildwithfern.dev/fern-yml.jsonChanges Made
packages/cli/config/scripts/generate-jsonschema.mjs— script that converts the ZodFernYmlSchemato JSON Schema viaz.toJSONSchema()fern-yml.schema.jsonto the repo root (generated output, ~6k lines)fern-yml:jsonschemanpm script and included it in the aggregatejsonschemascript in the rootpackage.jsonTesting
generators-yml.jsonandfern.jsonare served from repo root files viaschema.buildwithfern.dev— same pattern applies tofern-yml.schema.jsonpnpm lint:biome) and format (pnpm format:check) pass cleanlyLink to Devin session: https://app.devin.ai/sessions/1e2aa4f2a4dc4a35bee9141dd9a16888