FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Exclude `None`s when serializing models by jspahrsummers · Pull Request #8 · modelcontextprotocol/python-sdk · GitHub

Exclude Nones when serializing models - #8

Merged
jspahrsummers merged 1 commit into
mainfrom
justin/omit-nulls
Oct 3, 2024
Merged

Exclude Nones when serializing models#8
jspahrsummers merged 1 commit into
mainfrom
justin/omit-nulls

Conversation

jspahrsummers commented Oct 2, 2024
edited
Loading

Copy link
Copy Markdown
Member

We don't have any nulls in the spec, so right now the Python SDK serialization is not spec-compliant. This fixes it by removing all Nones (which become nulls).

Discovered via modelcontextprotocol/typescript-sdk#5.

Depends on

Base automatically changed from justin/ci to main October 3, 2024 10:04
jspahrsummers merged commit 33b5a12 into main Oct 3, 2024
jspahrsummers deleted the justin/omit-nulls branch October 3, 2024 10:04
ksteiny pushed a commit to ksteiny/python-sdk that referenced this pull request Dec 5, 2025
feat(server): use fastmcp context for injection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL