getSchema
Read the active schema document, or a specific version of it.
getSchema(query?: SchemaGetQuery): Promise<Schema>getSchema(request: SchemaGetRequest): Promise<SchemaGetResponse>Parameters
ParameterTypeRequired
namespacestringoptionalWhich schema namespace. Defaults to the caller's.
versionintegeroptionalA specific version. Omit for the current one.
Returns
FieldTypePresence
namespacestringalwaysThe namespace.
schemaVersionintegeralwaysIts version number.
schemaDocumentstringalwaysThe document itself.
uploadedAtUnixNanos64-bit integeralwaysWhen it landed.
validatorVersionintegeralwaysWhich 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?