| hide_title | true |
|---|---|
| custom_edit_url | |
| pagination_prev | |
| pagination_next |
Home > @rushstack/node-core-library > JsonSchema > validateObject
Validates the specified JSON object against this JSON schema. If the validation fails, an exception will be thrown.
Signature:
validateObject(jsonObject: JsonObject, filenameForErrors: string, options?: IJsonSchemaValidateOptions): void;|
Parameter |
Type |
Description |
|---|---|---|
|
jsonObject |
The JSON data to be validated | |
|
filenameForErrors |
string |
The filename that the JSON data was available, or an empty string if not applicable |
|
options |
(Optional) Other options that control the validation |
Returns:
void