Update api spec (#299)

* YOYO NEW API SPEC!

* I have generated the latest API!

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
zoo-github-actions-auth[bot]
2024-10-09 12:24:27 -07:00
committed by GitHub
parent 75827098b2
commit 3799b7eefe
10 changed files with 976 additions and 951 deletions

View File

@ -332,6 +332,7 @@ from .update_payment_balance import UpdatePaymentBalance
from .update_shortlink_request import UpdateShortlinkRequest
from .update_user import UpdateUser
from .user import User
from .user_identifier import UserIdentifier
from .user_org_info import UserOrgInfo
from .user_org_role import UserOrgRole
from .user_results_page import UserResultsPage

View File

@ -0,0 +1,17 @@
from typing import Any
from pydantic import GetCoreSchemaHandler
from pydantic_core import CoreSchema, core_schema
class UserIdentifier(str):
""""""
def __str__(self) -> str:
return self
@classmethod
def __get_pydantic_core_schema__(
cls, source_type: Any, handler: GetCoreSchemaHandler
) -> CoreSchema:
return core_schema.no_info_after_validator_function(cls, handler(str))