Files
DiceCloud/app/imports/api/properties/subSchemas/ErrorSchema.ts
2025-01-12 19:29:26 +02:00

16 lines
354 B
TypeScript

import STORAGE_LIMITS from '/imports/constants/STORAGE_LIMITS';
import { TypedSimpleSchema } from 'imports/api/utility/TypedSimpleSchema';
const ErrorSchema = new TypedSimpleSchema({
message: {
type: String,
max: STORAGE_LIMITS.errorMessage,
},
type: {
type: String,
max: STORAGE_LIMITS.name,
},
});
export default ErrorSchema;