Home > @cerbos/files > ReadSchemaOptions > id
Unique ID for the schema, to be used to reference the schema from policies and from other schemas.
Signature:
id?: string | undefined;
If the schema is nested under a directory called _schemas
, the default ID will be the file path relative to the _schemas
directory. Otherwise, the default ID will be the file's basename.