Skip to content

5.0.4#97

Open
rajnandan1 wants to merge 1 commit intomasterfrom
5.0.4
Open

5.0.4#97
rajnandan1 wants to merge 1 commit intomasterfrom
5.0.4

Conversation

@rajnandan1
Copy link
Contributor

Raising PR to github

Copilot AI review requested due to automatic review settings January 21, 2026 10:49
Copy link

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

This PR updates the cashfree_pg Python SDK to version 5.0.4, migrating from Pydantic v1 to v2 and updating the Python version requirement.

Changes:

  • Upgraded Pydantic from v1 (^1.10.24) to v2 (2.11.7)
  • Updated minimum Python version from 3.7 to 3.9
  • Migrated all model classes to use Pydantic v2 syntax and patterns
  • Updated OpenAPI generator version from 7.0.0 to 7.18.0

Reviewed changes

Copilot reviewed 298 out of 553 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
setup.py Updated VERSION to "1.0.0", PYTHON_REQUIRES to ">=3.9", and pydantic dependency to ">=2.11.7"
pyproject.toml Updated version to "1.0.0", python requirement to "^3.9", and pydantic to "2.11.7"
configuration.py Updated SDK Package Version string to "4.5.1"
cashfree_pg/rest.py Removed blank line formatting
cashfree_pg/models/*.py Migrated all model files to Pydantic v2: updated Config class to model_config dict, changed Field syntax, replaced @validator with @field_validator, updated type annotations, and added model_rebuild() calls
test/*.py Removed blank line formatting from test files
.openapi-generator/VERSION Updated OpenAPI generator version from 7.0.0 to 7.18.0

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

# http://pypi.python.org/pypi/setuptools
NAME = "cashfree_pg"
VERSION = "4.5.1"
VERSION = "1.0.0"
Copy link

Copilot AI Jan 21, 2026

Choose a reason for hiding this comment

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

Version number inconsistency detected. The PR title indicates version '5.0.4', the configuration.py shows '4.5.1', but setup.py and pyproject.toml both specify '1.0.0'. These version numbers should be aligned across all files to avoid confusion and deployment issues.

Suggested change
VERSION = "1.0.0"
VERSION = "5.0.4"

Copilot uses AI. Check for mistakes.
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