feat(docs): improve rendering of oxlintrc schema markdown#15571
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Pull Request Overview
This PR improves the rendering of oxlintrc schema markdown by adding support for anyOf subschemas. Previously, fields with anyOf schemas weren't being rendered with proper type information. The changes introduce logic to handle anyOf by extracting instance types from the subschemas and rendering them as union types (e.g., object | null).
- Added
anyOfhandling inrender_sub_schemato generate union type descriptions - Modified
render_schema_implto check for and render subschemas at the top level before other processing - Updated snapshot with new type information for fields like
overrides[n].env,overrides[n].globals,overrides[n].plugins,plugins, and settings types
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| tasks/website/src/linter/json_schema.rs | Implements anyOf subschema rendering logic to generate union type strings from multiple schema options |
| tasks/website/src/linter/snapshots/schema_markdown.snap | Updates snapshot with new type information for fields that use anyOf schemas |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Merge activity
|
fe03b5b to
1741204
Compare

No description provided.