Validate an EdgeWorkers code bundle

Return a list of errors and warnings containing details on how to fix your code bundle. See Validation types. In order to run this operation you need to provide an EdgeWorkers code bundle as a GZIP binary file in the request body, with a Content-Type of application/gzip.

Recipes
Validate an EdgeWorkers code bundle
Open Recipe
Query Params
string

For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

Body Params
Response

Response body
object
errors
array of objects
required
length ≥ 1

List of validation errors.

errors*
object
string
required
length ≥ 1

Read-only Message containing more details about the validation error.

string
required

Read-only The type of the validation error. See Validation error types.

ACCESS_TOKEN_EXPIRED ACCESS_TOKEN_INVALID ACCESS_TOKEN_MISSING ACCESS_TOKEN_REFERENCE_INVALID EDGEKV_FILE_MISSING EDGEKV_TOKENS_FILE_MISSING EMPTY_TARBALL INVALID_EDGEKV_IMPORTS INVALID_GZIP_FORMAT INVALID_MANIFEST INVALID_TAR_ARCHIVE MAX_COMPRESSED_SIZE_EXCEEDED MAX_UNCOMPRESSED_SIZE_EXCEEDED MISSING_MANDATORY_FILES STATIC_VALIDATION_FAILED DEPENDENCY_NOT_FOUND MISSING_MEGABUNDLE_JSON_FILE MISSING_DEPENDENCIES_DIRECTORY INVALID_MEGABUNDLE_JSON_FILE

warnings
array of objects
required
length ≥ 1

List of validation warnings.

warnings*
object
string
required
length ≥ 1

Read-only Message containing more details about the validation warning.

string
required

Read-only The type of the validation warning. See Validation warning types.

ACCESS_TOKEN_EXPIRING_SOON

Language
URL