Skip to content

fix: Update python server /samples to UCP 01-23 version.#66

Open
cusell-google wants to merge 9 commits intoUniversal-Commerce-Protocol:mainfrom
cusell-google:main
Open

fix: Update python server /samples to UCP 01-23 version.#66
cusell-google wants to merge 9 commits intoUniversal-Commerce-Protocol:mainfrom
cusell-google:main

Conversation

@cusell-google
Copy link
Copy Markdown

Update python server /samples to UCP 01-23 version.

payment_data=payment_instrument.PaymentInstrument(root=instrument),
risk_signals={},
)
return {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you explain the rationale?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The client post (lines 306-310) require the direct json object or a dictionary. They don't serialize pydantic models, so if we the method returns a class here it would need to be converted or unpacked with "model_dump" like it was before. This is cleaner as it avoids the double conversion.

@cusell-google cusell-google changed the title Update python server /samples to UCP 01-23 version. test: Update python server /samples to UCP 01-23 version. Mar 24, 2026
@cusell-google cusell-google changed the title test: Update python server /samples to UCP 01-23 version. fix: Update python server /samples to UCP 01-23 version. Mar 25, 2026
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