Skip to content

Introduce FieldInfo class for field schema enhancements #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

comfuture
Copy link
Owner

Add a new FieldInfo class to improve handling of field schemas, allowing for additional attributes like type, description, enum, and validation constraints.

Add magic expressions like 1 < FieldInfo() < 10 as validation constraints.

Update the get_function_schema function to incorporate FieldInfo and its attributes into the generated schema.

@comfuture comfuture linked an issue Dec 1, 2024 that may be closed by this pull request
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.

Support for additional properties
1 participant