Map Field(json_schema_extra) to extend:name / extend:descriptions - #80
Merged
Merged
Conversation
Parity with extend-typescript-sdk#90, which reads zod .meta() for these keywords: extend:name lands on every node type that carries a description, extend:descriptions on enum outputs. Unrelated keys and wrong-typed values are ignored.
slact
approved these changes
Aug 10, 2026
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Python parity for extend-hq/extend-typescript-sdk#90 (zod
.meta()support).pydantic_to_extend_schemanow readsField(json_schema_extra={...}):extend:name(string) is emitted on every node type that carries a description: primitives, enums, dates, arrays, nested objects, andExtendCurrency/ExtendSignature/ExtendDateextend:descriptions(list of strings, one per enum value) is emitted on enum outputs — bothLiteral[...]and stringEnumfieldsjson_schema_extrakeys and wrong-typed values are silently ignored, matching the TypeScript behaviorField()kwargs inFieldInfo.extra, which is handled)Test plan