Skip to content

Release PR for 2025-12-09 09:39#35

Merged
disafronov merged 5 commits into
releasefrom
main
Dec 9, 2025
Merged

Release PR for 2025-12-09 09:39#35
disafronov merged 5 commits into
releasefrom
main

Conversation

@disafronov
Copy link
Copy Markdown
Owner

@disafronov disafronov commented Dec 9, 2025

Changelog (#35)

✨ New Features

  • (schema_logger) add support for custom forbidden keys in SchemaLogger

📚 Documentation

  • clarify semantics of forbidden_keys in README and comments

🧪 Tests

  • enhance SchemaLogger tests for forbidden_keys handling

🧹 Chores

  • (release) 0.2.0-rc.1
  • (release) update release message format for semantic-release-bot

disafronov and others added 4 commits December 9, 2025 12:50
…ogger

- Enhanced the SchemaLogger to accept an optional `forbidden_keys` parameter during initialization, allowing subclasses to specify additional forbidden root keys for schema validation.
- Updated the caching mechanism in `_compile_schema_internal` to include forbidden keys in the cache key, ensuring separate caching for different sets of forbidden keys.
- Modified the `_check_root_conflicts` function to merge additional forbidden keys with the built-in LogRecord attributes, maintaining backward compatibility.
- Added comprehensive tests to validate the new functionality, including checks for inheritance and merging of forbidden keys.

This change improves flexibility in schema validation and enhances the usability of the logging framework.

Signed-off-by: Dmitrii Safronov <zimniy@cyberbrain.cc>
- Updated the README and comments in schema_loader.py and schema_logger.py to clarify that `None` and empty `set()` are semantically equivalent for the `forbidden_keys` parameter, both indicating "no additional forbidden keys."
- Enhanced documentation to ensure consistency and understanding of the behavior in schema validation and caching mechanisms.

This change improves clarity for developers regarding the usage of forbidden_keys in the logging framework.

Signed-off-by: Dmitrii Safronov <zimniy@cyberbrain.cc>
- Updated tests for SchemaLogger to validate behavior with different configurations of the `forbidden_keys` parameter, including `None`, empty set, and non-empty sets.
- Added tests to ensure correct initialization and schema handling in various scenarios, improving coverage and reliability of the logging framework.
- Utilized `monkeypatch` to manage temporary directory changes during tests, ensuring isolation and consistency.

This change enhances the robustness of the SchemaLogger tests and clarifies the expected behavior of the `forbidden_keys` parameter.

Signed-off-by: Dmitrii Safronov <zimniy@cyberbrain.cc>
## [0.2.0-rc.1](v0.1.4...v0.2.0-rc.1) (2025-12-09)

### Features

* **schema_logger:** add support for custom forbidden keys in SchemaLogger ([1d678f5](1d678f5))

Signed-off-by: Release Bot <noreply@github.com>
@github-actions github-actions Bot changed the title New release Release PR for 2025-12-09 09:06 Dec 9, 2025
Modified the release message format in .releaserc.cjs to use a specific email for the semantic-release-bot, ensuring consistent attribution in release notes.

Signed-off-by: Dmitrii Safronov <zimniy@cyberbrain.cc>
@github-actions github-actions Bot changed the title Release PR for 2025-12-09 09:06 Release PR for 2025-12-09 09:39 Dec 9, 2025
@disafronov disafronov merged commit b4b906c into release Dec 9, 2025
16 checks passed
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