synapse-react-client
Version:
[](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [](https://badge.fury.io/js/synaps
25 lines (24 loc) • 928 B
TypeScript
import { ObjectType } from './ObjectType';
export declare type ValidationException = {
/** The JSON schema keyword which was violated. */
keyword: string;
/** A JSON Pointer denoting the path from the input document root to its fragment which caused the validation failure. */
pointerToViolation: string;
/** The description of the validation failure. */
message: string;
/** A JSON Pointer denoting the path from the schema JSON root to the violated keyword. */
schemaLocation: string;
/** An array of sub-exceptions. */
causingExceptions: Array<ValidationException>;
};
export declare type ValidationResults = {
objectId: string;
objectType: ObjectType;
objectEtag: string;
schema$id: string;
isValid: boolean;
validatedOn: string;
validationErrorMessage?: string;
allValidationMessages?: Array<string>;
validationException?: ValidationException;
};