-
Notifications
You must be signed in to change notification settings - Fork 954
feat(config): generate types from config json schema #6053
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
base: main
Are you sure you want to change the base?
feat(config): generate types from config json schema #6053
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6053 +/- ##
=======================================
Coverage 95.16% 95.16%
=======================================
Files 316 316
Lines 9207 9207
Branches 2075 2075
=======================================
Hits 8762 8762
Misses 445 445 🚀 New features to boost your workflow:
|
cjihrig
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry if this review is premature since the PR is still in draft.
used claude to help with this. there's a good chance there's still extra fluff that needs sorting through. also still need to sort out the weird union behavior. we may need to maintain a fork with the fixes if they dont get merged upstream.
|
@cjihrig thanks for the early feedback! I've made adjustments based on your comments so far. |
* types are in a new file upstream. * still looking at how to reduce redundancy in intersection types generated by json2ts, for now fix in post-processing step. * temp todo for incorrect casing on otel type.
Which problem is this PR solving?
Short description of the changes
Add generation script that generates types based on the otel config schema, using a tool called json-schema-to-typescript. These types are intended to be used in the configuration package instead of us handrolling the types.
TODO:
Type of change
How Has This Been Tested?