-
Notifications
You must be signed in to change notification settings - Fork 9
New JSON generator schema #214
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
Comments
cc @nodejs/web-infra |
I finished giving a look! 👍 |
cc @nodejs/documentation |
flakey5
added a commit
that referenced
this issue
May 31, 2025
Closes #214 Signed-off-by: flakey5 <[email protected]>
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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
json
generator is available here.An example of it being used for
Buffer
is available here.The new proposed schema for the
json-all
generator 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:
$id
property)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:
description
property? (Good examples for reference: the entirety of addons, Buffers and character encodings)The text was updated successfully, but these errors were encountered: