Skip to content

Documentation / @facturometro/einvoice / 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? ​

readonly optional pathString?: 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',
};

MIT licensed. Specification artefacts belong to OpenPEPPOL, CEN and OASIS.