Skip to content
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

Use metadata.json schema as basis of our metadata types #137

Open
hobofan opened this issue Jan 23, 2024 · 0 comments
Open

Use metadata.json schema as basis of our metadata types #137

hobofan opened this issue Jan 23, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@hobofan
Copy link
Member

hobofan commented Jan 23, 2024

As of recently there is now a JSON Schema for the metadata.json files (bazelbuild/bazel-central-registry#1149), which we should use as the basis for the types we use in this repo.

  • We should add some codegen that generates Typescript types based on the schema (possibly based on a copy of the schema in our repo, so that changes in the format upstream don't immediately break our builds)
  • We should optimally add some check that will alert us that the schema in our and the upstream repo are drifting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant