-
Notifications
You must be signed in to change notification settings - Fork 4
feat!: upgrade sdk to use pydantic v2 #3
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 |
|---|---|---|
|
|
@@ -4,14 +4,14 @@ The Plane REST API | |
| Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). | ||
|
|
||
| - API version: 0.0.1 | ||
| - Package version: 0.1.6 | ||
| - Package version: 0.1.7 | ||
| - Generator version: 7.13.0 | ||
| - Build package: org.openapitools.codegen.languages.PythonPydanticV1ClientCodegen | ||
| - Build package: org.openapitools.codegen.languages.PythonClientCodegen | ||
| For more information, please visit [https://plane.so](https://plane.so) | ||
|
|
||
| ## Requirements. | ||
|
|
||
| Python 3.7+ | ||
| Python 3.9+ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainConfirm packaging metadata matches Python 3.9+ bump. Ensure python_requires and Trove classifiers reflect 3.9+ in pyproject.toml/setup.cfg/setup.py to avoid installing on unsupported interpreters. 🏁 Script executed: #!/bin/bash
# Verify python_requires and classifiers advertise >=3.9
rg -nP 'python_requires\s*=\s*["'\'']>=? ?3\.9' -g 'pyproject.toml setup.cfg setup.py'
rg -nP 'Programming Language :: Python :: 3\.(9|10|11|12|13)' -g 'pyproject.toml setup.cfg setup.py' -C2Length of output: 493 🏁 Script executed: #!/bin/bash
# Locate packaging metadata files and verify Python requirement and Trove classifiers
files=$(fd -HI --type f '^(pyproject\.toml|setup\.cfg|setup\.py)$')
if [ -z "$files" ]; then
echo "No packaging config files found"
exit 0
fi
echo "Found config files:"
echo "$files"
for f in $files; do
echo "------ $f ------"
rg -n "python_requires" "$f" || echo " ❌ No python_requires in $f"
rg -n "Programming Language :: Python :: 3" "$f" || echo " ❌ No Trove classifiers in $f"
doneLength of output: 1305 Add Python 3.9+ requirement to packaging metadata
🤖 Prompt for AI Agents |
||
|
|
||
| ## Installation & Usage | ||
| ### pip install | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,6 +3,7 @@ | |||||
| Cycle serializer with comprehensive project metrics and time tracking. Provides cycle details including work item counts by status, progress estimates, and time-bound iteration data for project management and sprint planning. | ||||||
|
|
||||||
| ## Properties | ||||||
|
|
||||||
| Name | Type | Description | Notes | ||||||
| ------------ | ------------- | ------------- | ------------- | ||||||
| **id** | **str** | | [optional] [readonly] | ||||||
|
|
@@ -47,7 +48,7 @@ json = "{}" | |||||
| # create an instance of Cycle from a JSON string | ||||||
| cycle_instance = Cycle.from_json(json) | ||||||
| # print the JSON string representation of the object | ||||||
| print Cycle.to_json() | ||||||
| print(Cycle.to_json()) | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix example: print instance JSON Match the variable created above. Apply: -print(Cycle.to_json())
+print(cycle_instance.to_json())📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
|
|
||||||
| # convert the object into a dict | ||||||
| cycle_dict = cycle_instance.to_dict() | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,6 +3,7 @@ | |||||
| Serializer for creating cycles with timezone handling and date validation. Manages cycle creation including project timezone conversion, date range validation, and UTC normalization for time-bound iteration planning and sprint management. | ||||||
|
|
||||||
| ## Properties | ||||||
|
|
||||||
| Name | Type | Description | Notes | ||||||
| ------------ | ------------- | ------------- | ------------- | ||||||
| **name** | **str** | | | ||||||
|
|
@@ -24,7 +25,7 @@ json = "{}" | |||||
| # create an instance of CycleCreateRequest from a JSON string | ||||||
| cycle_create_request_instance = CycleCreateRequest.from_json(json) | ||||||
| # print the JSON string representation of the object | ||||||
| print CycleCreateRequest.to_json() | ||||||
| print(CycleCreateRequest.to_json()) | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix example: use the created instance when printing JSON Use the instance variable defined above. Apply: -print(CycleCreateRequest.to_json())
+print(cycle_create_request_instance.to_json())📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
|
|
||||||
| # convert the object into a dict | ||||||
| cycle_create_request_dict = cycle_create_request_instance.to_dict() | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,6 +3,7 @@ | |||||
| Serializer for cycle-issue relationships with sub-issue counting. Manages the association between cycles and work items, including hierarchical issue tracking for nested work item structures. | ||||||
|
|
||||||
| ## Properties | ||||||
|
|
||||||
| Name | Type | Description | Notes | ||||||
| ------------ | ------------- | ------------- | ------------- | ||||||
| **id** | **str** | | [optional] [readonly] | ||||||
|
|
@@ -27,7 +28,7 @@ json = "{}" | |||||
| # create an instance of CycleIssue from a JSON string | ||||||
| cycle_issue_instance = CycleIssue.from_json(json) | ||||||
| # print the JSON string representation of the object | ||||||
| print CycleIssue.to_json() | ||||||
| print(CycleIssue.to_json()) | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Call to_json() on the instance, not the class. The example constructs an instance but prints via the class. -print(CycleIssue.to_json())
+print(cycle_issue_instance.to_json())📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
|
|
||||||
| # convert the object into a dict | ||||||
| cycle_issue_dict = cycle_issue_instance.to_dict() | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,6 +3,7 @@ | |||||
| Serializer for bulk work item assignment to cycles. Validates work item ID lists for batch operations including cycle assignment and sprint planning workflows. | ||||||
|
|
||||||
| ## Properties | ||||||
|
|
||||||
| Name | Type | Description | Notes | ||||||
| ------------ | ------------- | ------------- | ------------- | ||||||
| **issues** | **List[str]** | List of issue IDs to add to the cycle | | ||||||
|
|
@@ -17,7 +18,7 @@ json = "{}" | |||||
| # create an instance of CycleIssueRequestRequest from a JSON string | ||||||
| cycle_issue_request_request_instance = CycleIssueRequestRequest.from_json(json) | ||||||
| # print the JSON string representation of the object | ||||||
| print CycleIssueRequestRequest.to_json() | ||||||
| print(CycleIssueRequestRequest.to_json()) | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix example: instance vs class to_json() Use the instance created two lines above. Apply: -print(CycleIssueRequestRequest.to_json())
+print(cycle_issue_request_request_instance.to_json())📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
|
|
||||||
| # convert the object into a dict | ||||||
| cycle_issue_request_request_dict = cycle_issue_request_request_instance.to_dict() | ||||||
|
|
||||||
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.
🛠️ Refactor suggestion
Add explicit Ubuntu image to ensure Python 3.13 availability on Travis.
Travis may not provision 3.13 on older dist images. Recommend setting
dist: jammy(or the current Travis image that supports 3.13) to avoid interpreter resolution failures.Apply at the top of the file:
+dist: jammy🤖 Prompt for AI Agents