Documentation / @sw-file-lib/xml / xml-schema / SchemaIssueMap
Interface: SchemaIssueMap
interface SchemaIssueMap {
invalid_type: { expected: ExpectedSchemaInputType; value: SchemaInput };
invalid_value: { expected: "boolean_string" | "numeric_string"; value: string };
missing_required_field: { expected: ExpectedSchemaInputType };
invalid_union: { unionErrors: readonly SchemaError[]; input: SchemaInput | { element: SwXmlNode; key: string } };
duplicate_elements: {};
unknown_attribute: { key: string; value: string };
unknown_child: { child: SwXmlNode };
}Defined in: packages/xml/src/xml-schema/errors.ts:23
Properties
| Property | Type | Description |
|---|---|---|
{ | ‐ | |
| The expected value type. | |
| The original value that caused the issue. | |
{ | ‐ | |
|
| The expected value. |
|
| The original value that caused the issue. |
{ | ‐ | |
| The expected value type. | |
{ | ‐ | |
| readonly | Errors returned by each union branch. |
| | | The input that failed to match any union branch. When parsing a field, this is the parent element and field key because the union could have matched either an attribute or a child element. |
{ } | ‐ | |
{ | ‐ | |
|
| The unknown attribute name. |
|
| The raw attribute value. |
{ | ‐ | |
| The unknown child element. |