Skip to content

refactor!: update schema to GIM_QUERY/GIM_RESPONSE#42

Merged
Ki-Seki merged 7 commits intomainfrom
refactor/schema
Sep 23, 2025
Merged

refactor!: update schema to GIM_QUERY/GIM_RESPONSE#42
Ki-Seki merged 7 commits intomainfrom
refactor/schema

Conversation

@Ki-Seki
Copy link
Member

@Ki-Seki Ki-Seki commented Sep 23, 2025

This commit introduces a breaking change by renaming M_INPUT to GIM_QUERY and M_OUTPUT to GIM_RESPONSE. It also includes several fixes and improvements:

  • Refactor: Replace hardcoded magic strings with constants defined in schemas.py.
  • Fix: Improve the stringify method of Query() and Response() for better clarity and robustness.
  • Fix: Resolve an issue in parse_parts when handling tags with and without IDs.
  • Refactor: Update dataset/ and data-viewer.html to align with the schema changes.
  • Fix: Address type hints and resolve mypy issues.

These changes ensure better maintainability and consistency across the codebase.

This commit introduces a breaking change by renaming `M_INPUT` to `GIM_QUERY` and `M_OUTPUT` to `GIM_RESPONSE`. It also includes several fixes and improvements:

- Refactor: Replace hardcoded magic strings with constants defined in `schemas.py`.
- Fix: Improve the `stringify` method of `Query()` and `Response()` for better clarity and robustness.
- Fix: Resolve an issue in `parse_parts` when handling tags with and without IDs.
- Refactor: Update `dataset/` and `data-viewer.html` to align with the schema changes.
- Fix: Address type hints and resolve `mypy` issues.

These changes ensure better maintainability and consistency across the codebase.
@Ki-Seki Ki-Seki requested a review from Copilot September 23, 2025 12:43

This comment was marked as resolved.

@codecov
Copy link

codecov bot commented Sep 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Ki-Seki Ki-Seki requested a review from Copilot September 23, 2025 12:59

This comment was marked as resolved.

@Ki-Seki Ki-Seki requested a review from Copilot September 23, 2025 13:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 20 out of 20 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Ki-Seki Ki-Seki merged commit 6c0aa5a into main Sep 23, 2025
15 checks passed
@Ki-Seki Ki-Seki deleted the refactor/schema branch September 23, 2025 13:16
@Ki-Seki Ki-Seki linked an issue Sep 23, 2025 that may be closed by this pull request
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.

refactor: replace input/output with query/response

2 participants