g3-toolkit API Reference
    Preparing search index...

    Interface SchemaViewShape

    The display-only shape this view reads.

    This type used to be called ShaclShape, which collided with @g3-toolkit/core's ShaclShape (the validator's model) under one name across two packages. The two are structurally different: core keys its constraint list properties, this one keys it constraints, so the natural import built an array the component rejected. Renamed so ShaclShape means one thing everywhere; shapes accepts either form, so no runtime value that worked before stops working.

    interface SchemaViewShape {
        constraints: {
            datatype?: string;
            maxCount?: number;
            minCount?: number;
            path: string;
        }[];
        id: string;
        targetClass: string;
        targets?: ShaclShapeTarget[];
    }
    Index

    Properties

    constraints: {
        datatype?: string;
        maxCount?: number;
        minCount?: number;
        path: string;
    }[]
    id: string
    targetClass: string
    targets?: ShaclShapeTarget[]

    Further targets, as on core's ShaclShape; entries of kind class badge their class too (other kinds are not classes and are ignored here). Optional so existing values keep working.