@salesforce/b2c-tooling-sdk / xml-validation / ValidateXmlFilesOptions
Interface: ValidateXmlFilesOptions
Defined in: packages/b2c-tooling-sdk/src/xml-validation/types.ts:84
Options for validating a set of files.
Extends
Properties
cwd?
optionalcwd:string
Defined in: packages/b2c-tooling-sdk/src/xml-validation/types.ts:73
Base directory for a relative .xsd path in schema. Defaults to the current directory.
Inherited from
explicitFiles?
optionalexplicitFiles:ReadonlySet<string>
Defined in: packages/b2c-tooling-sdk/src/xml-validation/types.ts:93
Files that were named explicitly (rather than found by expanding a directory or glob). An explicitly named file with no matching bundled schema fails instead of being skipped.
failFast?
optionalfailFast:boolean
Defined in: packages/b2c-tooling-sdk/src/xml-validation/types.ts:86
Stop after the first file that fails.
onResult()?
optionalonResult: (result) =>void
Defined in: packages/b2c-tooling-sdk/src/xml-validation/types.ts:88
Called after each file is validated.
Parameters
result
Returns
void
schema?
optionalschema:string
Defined in: packages/b2c-tooling-sdk/src/xml-validation/types.ts:78
Validate against this schema instead of detecting one from the root element namespace. Either a bundled schema ID (see b2c docs schema --list) or a path to an .xsd file.