Files
DiceCloud/app/imports/api/properties/subSchemas/ErrorSchema.ts
2025-01-14 13:21:43 +02:00

16 lines
356 B
TypeScript

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