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
Copy file name to clipboardExpand all lines: README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,9 +43,13 @@ A JSON Schema object typed with [`JSONSchemaType<SocketYml>`](https://ajv.js.org
43
43
44
44
### `SocketValidationError`
45
45
46
-
Error thrown when the parsed data doesn't conform to the JSON Schema definition (see `socketYmlSchema`).
46
+
Error thrown when the parsed data doesn't conform to the JSON Schema definition.
47
47
48
-
Exposes an array of [Ajv's `ErrorObject`](https://ajv.js.org/api.html#error-objects) at `.validationErrors`, allowing a consumer to present a user friendly error.
48
+
Extends `Error` and adds these additional properties:
49
+
50
+
*`data` – the data that's found to be invalid
51
+
*`schema` – the schema used to validate the content
52
+
*`validationErrors` – an array of [Ajv's `ErrorObject`](https://ajv.js.org/api.html#error-objects)
0 commit comments