list_schemas
Every schema version in the namespace, and whether each one kept its source text.
list_schemas(limit=None, cursor=None) -> ListSchemasResultlist_schemas(request: SchemaListRequest) -> list[SchemaListItem]
list_schemas_frames(request: SchemaListRequest) -> list[SchemaListResponseFrame]Parameters
ParameterTypeRequired
limitintegeroptionalPage size.
cursorstring (wire: bytes)optionalCursor from the previous page.
Returns
FieldTypePresence
namespacestringalwaysThe namespace.
itemsSchemaVersion[]alwaysEach with schemaVersion, uploadedAtUnixNanos, validatorVersion and hasSourceText.
totalintegeralwaysHow many versions exist in total.
next_cursorstringAbsent on the last page.
hasSourceText can be false
false means the document itself was not retained for that version, only
the compiled form. get_schema on such a version
cannot give you the text back — so keep your schemas in version control, not
only in Brain.
See also
Was this page helpful?