Cerbos JavaScript SDK
    Preparing search index...

    Interface ReadSchemaOptions

    Options for readSchema.

    interface ReadSchemaOptions {
        id?: string;
    }
    Index

    Properties

    Properties

    id?: string

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

    (inferred from the schema file path)
    

    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.