MCPcopy Create free account
hub / github.com/Materials-Consortia/optimade-python-tools / Link

Class Link

optimade/models/jsonapi.py:41–52  ·  view source on GitHub ↗

A link **MUST** be represented as either: a string containing the link's URL or a link object.

Source from the content-addressed store, hash-verified

39
40
41class 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
55JsonLinkType = Union[AnyUrl, Link]

Callers 1

_generate_info_responseFunction · 0.85

Calls 1

StrictFieldFunction · 0.90

Tested by

no test coverage detected