nodejs / api-docs-tooling

Node.js's tooling for API generation
https://nodejs.org/api
MIT License
5 stars 5 forks source link

Introduce a Linter / Validation System #56

Open ovflowd opened 3 months ago

ovflowd commented 3 months ago

This is another feature we want to tackle and have within the API docs tooling. The idea is similar to ESlint: We have a system that reports on irregularities when running the API docs tooling against files.

Assume you have a missing version on one of the YAML metadata (i.e.: version: REPLACEME), or some of the YAML is missing (like each module may have an "introduced_in" on the first node/section), or you have some invalid type within the API docs (ie: {SomethingThatDoesNotExist} or a typo {Obrect} instead of {Object}

Possible items for the system:

flakey5 commented 2 months ago

I can try to take a swing at this once I'm done with the legacy json generator, do we know when we'd want this by?

ovflowd commented 2 months ago

I can try to take a swing at this once I'm done with the legacy json generator, do we know when we'd want this by?

No ETA, priorities on parity with current generation.

flakey5 commented 2 months ago

Assuming this is also gonna be ran in ci, wdyt of having it report errors inline similiar to https://www.npmjs.com/package/@reporters/github?

ovflowd commented 2 months ago

Why not