get_schema
Read the active schema document, or a specific version of it.
get_schema(namespace: str | None = None, version: int | None = None) -> Schemaget_schema(request: SchemaGetRequest) -> SchemaGetResponseParameters
ParameterTypeRequired
namespacestringoptionalWhich schema namespace. Defaults to the caller's.
versionintegeroptionalA specific version. Omit for the current one.
Returns
FieldTypePresence
namespacestringalwaysThe namespace.
schema_versionintegeralwaysIts version number.
schema_documentstringalwaysThe document itself.
uploaded_at_unix_nanos64-bit integeralwaysWhen it landed.
validator_versionintegeralwaysWhich validator accepted it. A document that passed under an older validator is not guaranteed to pass under a newer one.
See also
Was this page helpful?