You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parse and validate a XARF report from JSON. Supports both v4 and v3 (legacy) formats — v3 reports are automatically converted to v4 with deprecation warnings.
105
105
106
106
```typescript
107
-
import { parse } from'xarf';
107
+
import { parse } from'@xarf/xarf';
108
108
109
109
const { report, errors, warnings, info } =parse(jsonData, options?);
Create a validated XARF report with auto-generated metadata. Automatically fills `xarf_version`, `report_id` (UUID), and `timestamp` (ISO 8601) if not provided.
Access schema-derived validation rules and metadata programmatically.
170
170
171
171
```typescript
172
-
import { schemaRegistry } from'xarf';
172
+
import { schemaRegistry } from'@xarf/xarf';
173
173
174
174
// Get all valid categories
175
175
schemaRegistry.getCategories();
@@ -211,7 +211,7 @@ if (info) {
211
211
The library automatically detects XARF v3 reports (by the `Version` field) and converts them to v4 during parsing. Converted reports include `legacy_version: '3'` and deprecation warnings.
0 commit comments