Files
DiceCloud/app/imports/api/properties/subSchemas/ErrorSchema.ts
2025-01-12 23:28:43 +02:00

16 lines
355 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;