Skip to content

Conversation

dol
Copy link

@dol dol commented Oct 9, 2025

…roved type safety

  • Replace "additionalProperties": true with typed additionalProperties schemas
  • Remove redundant patternProperties in favor of additionalProperties
  • Update wildcard pattern matching from ".*" to ".+" for more precise matching
  • Affects schema files: instrumentation, logger_provider, meter_provider, propagator, resource, tracer_provider
  • Update documentation and script comments to reflect pattern change from ".*" to ".+"

This change improves JSON schema validation by providing explicit typing for additional properties instead of allowing any properties, while maintaining backward compatibility for configuration extensions.

JSON Schema docs: https://json-schema.org/understanding-json-schema/reference/object#additionalproperties

Example: https://github.com/puremourning/vimspector/blob/0da16c67e5fc862ac8988d0580a58d40858f2456/docs/schema/vimspector.schema.json#L278

@dol dol requested a review from a team as a code owner October 9, 2025 22:42
…roved type safety

- Replace `"additionalProperties": true` with typed `additionalProperties` schemas
- Remove redundant `patternProperties` in favor of `additionalProperties`
- Update wildcard pattern matching from ".*" to ".+" for more precise matching
- Affects schema files: instrumentation, logger_provider, meter_provider, propagator, resource, tracer_provider
- Update documentation and script comments to reflect pattern change from ".*" to ".+"

This change improves JSON schema validation by providing explicit typing for additional properties instead of
allowing any properties, while maintaining backward compatibility for configuration extensions.
@dol dol force-pushed the fix/wildcard-pattern branch from 1de0fa6 to fc38482 Compare October 19, 2025 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants