You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by ak...@apache.org on 2026/03/13 20:42:36 UTC
(tooling-trusted-releases) branch openapi-viewer-500-883 created (now 253fb09a)
This is an automated email from the ASF dual-hosted git repository.
akm pushed a change to branch openapi-viewer-500-883
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
at 253fb09a Adding a pydantic json schema for output; fixes #883
This branch includes the following new commits:
new 253fb09a Adding a pydantic json schema for output; fixes #883
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org
(tooling-trusted-releases) 01/01: Adding a pydantic json schema for output; fixes #883
Posted by ak...@apache.org.
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 <ak...@apache.org>
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: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org