Documentation / @facturometro/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 '@facturometro/validator';
const schemeIds = (attributes: readonly AttributeLeaf[]) =>
attributes.filter((attribute) => attribute.name === 'schemeID');Properties ​
element ​
readonlyelement:string
Defined in: packages/validator/src/engine/view.ts:162
Local name of the element carrying the attribute, e.g. EndpointID.
name ​
readonlyname:string
Defined in: packages/validator/src/engine/view.ts:164
Attribute name as in the XML, e.g. schemeID.
path ​
readonlypath:ModelPath
Defined in: packages/validator/src/engine/view.ts:166
Model path of the attribute (the element's path plus the attribute property).
value ​
readonlyvalue:string
Defined in: packages/validator/src/engine/view.ts:168
The attribute's value.