Skip to content

ParseResult

Defined in: packages/core/src/parser/yaml-parser.ts:432

Result object returned by safeParse operations

Type ParameterDefault type
TRootConfig
PropertyTypeDescriptionDefined in
data?TValidated configuration object (only present if success is true)packages/core/src/parser/yaml-parser.ts:434
errorsParseError[]Array of errors (only present if success is false)packages/core/src/parser/yaml-parser.ts:435
format?DocumentFormatThe format the document was read as. Set by parseDocumentText.packages/core/src/parser/yaml-parser.ts:438
successbooleanWhether parsing and validation succeededpackages/core/src/parser/yaml-parser.ts:433
warningsValidationWarning[]Non-fatal findings (unknown keys, deprecations, bounded expression checks). Present on both success and failure; always an array.packages/core/src/parser/yaml-parser.ts:436