Skip to content

Latest commit

 

History

History
83 lines (40 loc) · 1.09 KB

core.client.getschema.md

File metadata and controls

83 lines (40 loc) · 1.09 KB

Home > @cerbos/core > Client > getSchema

Client.getSchema() method

Fetch a schema by ID.

Signature:

getSchema(id: string, options?: RequestOptions): Promise<Schema | undefined>;

Parameters

Parameter

Type

Description

id

string

options

RequestOptions

(Optional)

Returns:

Promise<Schema | undefined>

Remarks

Requires

Example

const schema = await cerbos.getSchema("document.json");