Agent Maturity Compass API - v1.2.0
    Preparing search index...

    Interface ContractTestCase

    interface ContractTestCase {
        description: string;
        expectedStatus: number;
        method: "POST" | "GET" | "DELETE" | "PUT";
        name: string;
        path: string;
        requestBody?: Record<string, unknown>;
        requiredFields: string[];
        testId: string;
        validators: {
            field: string;
            rule:
                | "exists"
                | "non_empty"
                | "type_string"
                | "type_number"
                | "type_boolean";
        }[];
    }
    Index
    description: string
    expectedStatus: number

    Expected status code

    method: "POST" | "GET" | "DELETE" | "PUT"

    HTTP method

    name: string
    path: string

    Endpoint path

    requestBody?: Record<string, unknown>

    Request body (if applicable)

    requiredFields: string[]

    Required response fields

    testId: string
    validators: {
        field: string;
        rule:
            | "exists"
            | "non_empty"
            | "type_string"
            | "type_number"
            | "type_boolean";
    }[]

    Response validators