Skip to content

Maintenance: fix typedoc-plugin-zod usage #2923

Closed
@dreamorosi

Description

@dreamorosi

Summary

Currently we are using a Typedoc plugin called typedoc-plugin-zod which is expected to prettify the Zod schemas in our TypeDoc API docs.

This is working well enough, however when building the docs the plugin is causing thousands of warnings:

image

I was able to confirm that the plugin is the source of the warnings because commenting it out in the main typedoc.json config makes all the warnings immediately disappear.

We should investigate if this is: 1/ a bug with the plugin, 2/ a misconfiguration on our part, or 3/ a misuse of our typedoc annotations that causes the warnings.

Why is this needed?

So that we don't have thousands of warnings when generating the API docs.

Which area does this relate to?

Parser

Solution

In case of 2/ or 3/, we should fix it, in case of 1/ ideally we should open an issue on the plugin's repo to get it fixed. If none of the above is a viable option, we should look at alternatives or removing the plugin entirely.

The good thing is that the plugin is from the same author as Typedoc itself, so unless it's an issue with Zod itself I'm confident there will be a solution.

Acknowledgment

Future readers

Please react with 👍 and your use case to help us understand customer demand.

Metadata

Metadata

Assignees

Labels

completedThis item is complete and has been merged/shippeddocumentationImprovements or additions to documentationinternalPRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.)parserThis item relates to the Parser Utility

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions