Skip to content
This page View Markdown Open in ChatGPT Open in Claude

Is valid data for third party API

g.sys.system.isValidDataForThirdPartyAPI calls the is valid data for third party API system API from your code, whatever the settings of that API say about HTTP callers.

Validate third party request body

Test the data is valid for Third party API, using global object 'g'.

await g.sys.system.isValidDataForThirdPartyAPI({
    apiBundleName: "bundle_name",
    apiVersionName: "api_version",
    name: "api_name",
    type: "BODY", // BODY | QUERY_PARAMS
    data: {
        name: 'hello'
    },
    isArray: false
});