Skip to content

Documentation / @facturometro/einvoice / 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 '@facturometro/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 artefacts belong to OpenPEPPOL, CEN and OASIS.