Repository navigation
New JSON generator schema #214
Copy link
Copy link
Labels
Web Generator`web`, `jsx-ast`, and `orama-db``web`, `jsx-ast`, and `orama-db`
Description
Activity
cc @nodejs/web-infra
Reacted by Claudio WunderI finished giving a look! 👍
Reacted by flakey5cc @nodejs/documentation
- added a commit that references this issue
on May 31, 2025 - added a commit that references this issue
on Oct 6, 2025 - addedWeb Generator`web`, `jsx-ast`, and `orama-db``web`, `jsx-ast`, and `orama-db`
on Oct 12, 2025 - added a commit that references this issue
on Oct 23, 2025 - added a commit that references this issue
on Nov 10, 2025 - added 2 commits that reference this issue
on Nov 29, 2025 I'm not sure this makes it easier to consume. I feel like not knowing whether a prop has an
@prefix might make it harder, but maybe I'm wrong?It's just to be easily complaint with JSDoc and allow easy JSDoc generation, also I find these keys completely OK named.
Reacted by Aviv Keller- moved this from In Progress to Done in Node.js API Documentation Tooling
on Sep 22, 2026
Metadata
Metadata
Assignees
Labels
Web Generator`web`, `jsx-ast`, and `orama-db``web`, `jsx-ast`, and `orama-db`
Type
Projects
- StatusShow more project fieldsDone
Enter your suggestions in details:
Background
This issue is regarding the new format for the JSON generator.
It only pertains to the format of the JSON files, the implementation details will be discussed once a censensus is reached here.
Why a new format?
There are a handful of issues with the current format, with some of the main ones being:
Relevant: DefinitelyTyped/DefinitelyTyped#70298, #57
The new format
The newly proposed schema for
jsongenerator is available here.An example of it being used for
Bufferis available here.The new proposed schema for the
json-allgenerator is available here.An example of it being used is available here.
Key Points
JSON Schema
The new formats have JSON schemas defined. This gives us three main advantages over the current format:
$idproperty)JSDoc Property Names
JSDoc keys (i.e.
@name,@type) are used in the format.This is mainly to make the files easier to consume.
TODOs
Here's what's left to be done with the new format:
descriptionproperty? (Good examples for reference: the entirety of addons, Buffers and character encodings)