New JSON generator schema
Les mainteneurs répondent en général sous 1 jour
@avivkeller y travaille déjà.
Depuis le 15/9/2026.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
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:
- Maintainability
- Without a pre-defined schema, it can be harder to tell where a property should be expected to go within the output
- There isn't a great way to communicate changes to this schema when they happen
- Consumability
- Users don't know what to expect without going through the generator's code or looking through all of the outputted JSON files
- The current format represents some fields in unfortunate ways (i.e. Markdown being parsed in HTML for descriptions)
Relevant: DefinitelyTyped/DefinitelyTyped#70298, nodejs/api-docs-tooling#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:
- Consumers know what to expect
- We can version the output files in a standardized way (via the
$idproperty) - The schemas can be used to generate the types used within the JSON generator. This will help with maintaining the generator in the long run since we don't have to worry about them getting out of sync.
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:
- How do we want to represent sections that are just text (aka not defining any API)? Should these just be combined into their parent's
descriptionproperty? (Good examples for reference: the entirety of addons, Buffers and character encodings)
- Langage dominant
- JavaScript
- Étoiles
- 65
- Forks
- 71
- Merge moyen
- 4 j 15 h
- PR mergées (30 j)
- 33
Préparer son environnement
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de nodejs/doc-kit
-
Difficulté 2/5 Une demi-journée Accessibilité débutants 68/100
nodejs/doc-kit#1085 · 6 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
nodejs/doc-kit#1054 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Can the links to previews in the comments generated by a PR include `doc-kit`?Peut-être pris @avivkeller l’a pris il y a 11 jours. Ouverte
nodejs/doc-kit#1098 · 2 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
nodejs/doc-kit#1056 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
index page's ToC mark "stability index" as legacyPeut-être pris @avivkeller l’a pris il y a 11 jours. Ouverte
nodejs/doc-kit#1053 · 2 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de nodejs/doc-kit
Issues similaires
-
Complexity: Small P-Feature: Projects page ready for merge team role: back end/devOps role: front end size: 0.25pt
Difficulté 1/5 1-3 heures Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 67/100
bellingcat/toolkit#905 ·
-
self-care self-care:docs-build-time-investigator
Difficulté 2/5 Une demi-journée Accessibilité débutants 76/100
githubnext/gh-aw-cao#14191 ·
Les mainteneurs répondent en général sous 1 jour
-
effort:low impact:medium RAG status: auto-triaged
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
mastra-ai/mastra#25229 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
sugarlabs/musicblocks#8984 ·
Les mainteneurs répondent en général sous 1 jour