listSchemas
Every schema version in the namespace, and whether each one kept its source text.
listSchemas(query?: ListSchemasQuery): Promise<ListSchemasResult>listSchemas(request: SchemaListRequest): Promise<SchemaListItemWire[]>
listSchemasFrames(request: SchemaListRequest): Promise<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.
nextCursorstringAbsent on the last page.
hasSourceText can be false
false means the document itself was not retained for that version, only
the compiled form. getSchema 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?