Skip to content

Documentation / @einvoice-ts/validator / AttributeLeaf

Interface: AttributeLeaf ​

Defined in: packages/validator/src/engine/view.ts:160

One attribute present in the document, found by walking the schema.

Example ​

ts
import type { AttributeLeaf } from '@einvoice-ts/validator';

const schemeIds = (attributes: readonly AttributeLeaf[]) =>
  attributes.filter((attribute) => attribute.name === 'schemeID');

Properties ​

element ​

readonly element: string

Defined in: packages/validator/src/engine/view.ts:162

Local name of the element carrying the attribute, e.g. EndpointID.


name ​

readonly name: string

Defined in: packages/validator/src/engine/view.ts:164

Attribute name as in the XML, e.g. schemeID.


path ​

readonly path: ModelPath

Defined in: packages/validator/src/engine/view.ts:166

Model path of the attribute (the element's path plus the attribute property).


value ​

readonly value: string

Defined in: packages/validator/src/engine/view.ts:168

The attribute's value.

MIT licensed. Specification material belongs to OpenPeppol, CEN and OASIS (see NOTICE). Peppol is a trademark of OpenPeppol AISBL; this project is not affiliated with it.