This is an automated email from the ASF dual-hosted git repository. akm pushed a commit to branch openapi-viewer-500-883 in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
commit 253fb09a3968ad5db514e508dc0cfb094c489502 Author: Andrew K. Musselman <[email protected]> AuthorDate: Fri Mar 13 13:42:02 2026 -0700 Adding a pydantic json schema for output; fixes #883 --- atr/models/safe.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/atr/models/safe.py b/atr/models/safe.py index c71daf27..799ac5dc 100644 --- a/atr/models/safe.py +++ b/atr/models/safe.py @@ -78,6 +78,10 @@ class SafeType: serialization=core_schema.to_string_ser_schema(), ) + @classmethod + def __get_pydantic_json_schema__(cls, _core_schema: Any, _handler: Any) -> dict[str, Any]: + return {"type": "string"} + class Alphanumeric(SafeType): @classmethod --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
