UNPKG

synapse-react-client

Version:

[![Build Status](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client.svg?branch=main)](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synaps

25 lines (24 loc) 928 B
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; };