-
Notifications
You must be signed in to change notification settings - Fork 0
Bump version and standardize API meta #17
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| """NX AI - FastAPI/Python/Postgres/tsvector""" | ||
|
|
||
| # Current Version | ||
| __version__ = "1.0.6" | ||
| __version__ = "1.0.7" | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -39,11 +39,11 @@ def root() -> dict: | |||||
|
|
||||||
| epoch = int(time.time() * 1000) | ||||||
| meta = { | ||||||
| "title": "Product List", | ||||||
| "description": "from the products Postgres table", | ||||||
|
||||||
| "description": "from the products Postgres table", | |
| "description": "List of available products", |
Copilot
AI
Mar 22, 2026
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.
meta.time changes from a human-readable timestamp string (and separate epoch) to an epoch-milliseconds integer, and meta.message is removed. If this API is consumed externally, this is a response-shape breaking change; consider either providing a transition period (e.g., keep the old fields for one release) or bumping the version in a way that clearly signals incompatibility to API consumers.
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -13,12 +13,12 @@ def root() -> dict: | |||||||
| base_url = os.getenv("BASE_URL", "http://localhost:8000") | ||||||||
| epoch = int(time.time() * 1000) | ||||||||
| meta = { | ||||||||
| "base_url": base_url, | ||||||||
| "title": "NX-AI says hi", | ||||||||
| "description": "This is the base_url", | ||||||||
|
||||||||
| "description": "This is the base_url", | |
| "description": "Root endpoint for the NX-AI API; returns service metadata and the base URL for key endpoints.", |
Copilot
AI
Mar 22, 2026
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.
Removing the meta.message field is a breaking change for the existing test suite: tests/test_routes.py::test_root_returns_welcome_message currently asserts json_data["meta"]["message"] exists and contains "NX AI". Either update the tests to match the new meta schema or keep a backward-compatible message field for now.
| "severity": "success", | |
| "severity": "success", | |
| "message": "Welcome to NX AI", |
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.
Given the API response metadata schema changes in this PR (field removals/type changes), consider whether a patch bump to 1.0.7 is sufficient. If you follow semantic versioning for API/package compatibility, a minor/major bump (or a deprecation window) would better signal breaking changes to consumers.