mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
26 lines
567 B
JavaScript
26 lines
567 B
JavaScript
import { valuesReasonCategoryOptions } from '~/constants/modals.js'
|
|
|
|
export default function validReport({ translate }) {
|
|
return {
|
|
formSchema: {
|
|
reasonCategory: {
|
|
type: 'object',
|
|
required: true,
|
|
fields: {
|
|
value: {
|
|
type: 'enum',
|
|
enum: valuesReasonCategoryOptions,
|
|
required: true,
|
|
message: translate('report.reason.category.invalid'),
|
|
},
|
|
},
|
|
},
|
|
reasonDescription: {
|
|
type: 'string',
|
|
min: 0,
|
|
max: 200,
|
|
},
|
|
},
|
|
}
|
|
}
|