@salesforce/b2c-tooling-sdk / xml-validation / XmlValidationResult
Interface: XmlValidationResult
Defined in: packages/b2c-tooling-sdk/src/xml-validation/types.ts:36
Validation result for one XML file.
Properties
errors
errors:
XmlDiagnostic[]
Defined in: packages/b2c-tooling-sdk/src/xml-validation/types.ts:38
Errors and fatal (well-formedness) errors.
filePath
filePath:
string
Defined in: packages/b2c-tooling-sdk/src/xml-validation/types.ts:39
namespace?
optionalnamespace:string
Defined in: packages/b2c-tooling-sdk/src/xml-validation/types.ts:41
Namespace of the root element, when one was found.
reason?
optionalreason:string
Defined in: packages/b2c-tooling-sdk/src/xml-validation/types.ts:45
Why the file was skipped, or why it failed without diagnostics (for example, no schema applies).
rootElement?
optionalrootElement:string
Defined in: packages/b2c-tooling-sdk/src/xml-validation/types.ts:43
Local name of the root element, when one was found.
schema?
optionalschema:string
Defined in: packages/b2c-tooling-sdk/src/xml-validation/types.ts:47
Bundled schema ID (for example catalog), or the path of a custom XSD.
status
status:
XmlValidationStatus
Defined in: packages/b2c-tooling-sdk/src/xml-validation/types.ts:48
truncated?
optionaltruncated:boolean
Defined in: packages/b2c-tooling-sdk/src/xml-validation/types.ts:50
True when more diagnostics were reported than are included.
valid
valid:
boolean
Defined in: packages/b2c-tooling-sdk/src/xml-validation/types.ts:52
True when the file passed validation. Skipped files are not valid.
warnings
warnings:
XmlDiagnostic[]
Defined in: packages/b2c-tooling-sdk/src/xml-validation/types.ts:53