-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[chore] update jsonschema #8113
[chore] update jsonschema #8113
Conversation
This updates the jsonschema to the latest in main. It additionally adds a sed patch for making Headers a map[string]string instead of a map[string]interface. Signed-off-by: Alex Boten <aboten@lightstep.com>
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #8113 +/- ##
==========================================
- Coverage 90.55% 90.19% -0.36%
==========================================
Files 301 301
Lines 15317 15377 +60
==========================================
Hits 13870 13870
- Misses 1161 1221 +60
Partials 286 286
☔ View full report in Codecov by Sentry. |
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.
Approving with a suggestion we can deal with now or later
# go-jsonschema always generates patternProperties as | ||
# map[string]interface{}, for more specific types, they must | ||
# be replaced here | ||
s+type Headers.*+type Headers map[string]string+g |
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.
nit: I think an actual patch to be applied by patch
would be more resilient here (not a fan of sed specially after open-telemetry/opentelemetry-collector-contrib/issues/23981)
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.
Fair, I can open an issue following this to use patch instead of sed for both jsonschema & proto generation
This updates the jsonschema to the latest in main. It additionally adds a sed patch for making Headers a map[string]string instead of a map[string]interface.
@mx-psi