A link **MUST** be represented as either: a string containing the link's URL or a link object.
| 39 | |
| 40 | |
| 41 | class Link(BaseModel): |
| 42 | """A link **MUST** be represented as either: a string containing the link's URL or a link object.""" |
| 43 | |
| 44 | href: Annotated[ |
| 45 | AnyUrl, StrictField(description="a string containing the link's URL.") |
| 46 | ] |
| 47 | meta: Annotated[ |
| 48 | Meta | None, |
| 49 | StrictField( |
| 50 | description="a meta object containing non-standard meta-information about the link.", |
| 51 | ), |
| 52 | ] = None |
| 53 | |
| 54 | |
| 55 | JsonLinkType = Union[AnyUrl, Link] |
no test coverage detected