@digicatapult/dtdl-parser
Version:
JS tool to parse DTDL defined Ontologies
27 lines (23 loc) • 551 B
TypeScript
export type ModelingException = ParsingException | ResolutionException
export interface ParsingException {
ExceptionKind: 'Parsing'
Errors: ParsingError[]
}
export interface ParsingError {
PrimaryID?: string
SecondaryID?: string
Property?: string
AuxProperty?: string
Type?: string
Value?: string
Restriction?: string
Transformation?: string
Violations?: string[]
Cause: string
Action: string
ValidationID: string
}
export interface ResolutionException {
ExceptionKind: 'Resolution'
UndefinedIdentifiers: string[]
}