Skip to navigation

Save state (detailed)

Referenced In

Fields

Validation applies the defaults shown here.

FieldTypeDescriptionDefault
pathstringRequired. Path of the state file, ending in .json. A relative path resolves against directory, or against outputDir when directory is omitted.

Pattern: ^.*\S.*\.json$
—
directorystringOptional. Directory to save the state file in. A relative directory resolves against the spec file. Omit it to save under outputDir.

Minimum length: 1. Pattern: \S
—
overwritebooleanOptional. Whether to replace an existing state file.false

Examples

{
"path": "auth.json"
}
{
"path": "auth.json",
"directory": "../.auth",
"overwrite": true
}