Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 639 Bytes

files.readschemaoptions.id.md

File metadata and controls

18 lines (10 loc) · 639 Bytes

Home > @cerbos/files > ReadSchemaOptions > id

ReadSchemaOptions.id property

Unique ID for the schema, to be used to reference the schema from policies and from other schemas.

Signature:

id?: string | undefined;

Remarks

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.