@poseidat/schemas
Version:
The core schemas for the PoseiDAT data interchange formats
26 lines • 809 B
TypeScript
import { ErrorObject } from 'ajv';
import { ICoreBaseEntry } from './schema-types';
/**
* Convenience class for constructing and validating an Entry
* Can be extended by other entry classes to reuse validation logic
*
* @export
* @class BaseEntry
*/
export declare class BaseEntry {
data: ICoreBaseEntry;
protected schema: import("json-schema").JSONSchema7;
/**
* Creates an instance of Entry
*
* @param {ICoreBaseEntry} [data={}] The data to initialize the Entry with
*/
constructor(data: ICoreBaseEntry, schema?: import("json-schema").JSONSchema7, entryType?: string);
/**
* Validates the current Entry data against the core schema
*
* @returns {ajv.ErrorObject[]}
*/
validate(): ErrorObject[];
}
//# sourceMappingURL=base-entry.d.ts.map