Documentation / @facturometro/core / IssueInput
Type Alias: IssueInput ​
IssueInput =
Omit<Issue,"pathString"> &object
Defined in: packages/core/src/issue.ts:168
Everything createIssue needs; pathString is derived from path when omitted.
Type Declaration ​
pathString? ​
readonlyoptionalpathString?:string
Example ​
ts
import type { IssueInput } from '@facturometro/core';
const input: IssueInput = {
id: 'BR-01',
message: 'An Invoice shall have a Specification identifier.',
path: ['customizationId'],
severity: 'fatal',
source: 'rule',
xpath: '/Invoice/cbc:CustomizationID',
};