Skip to content

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

@jspahrsummersjspahrsummers commented Oct 2, 2024

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

k6l3
k6l3 approved these changes Oct 3, 2024
Base automatically changed from justin/ci to mainOctober 3, 2024 10:04
@jspahrsummers
jspahrsummers merged commit 33b5a12 into mainOct 3, 2024
@jspahrsummers
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
Sign up for freeto 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

@jspahrsummers@k6l3@ashwin-ant