Add support for app-required field state (#7166)

* Add "required" option to fields

* Move some exceptions to shared

* Do client side validation for required

* Add conditional required support
This commit is contained in:
Rijk van Zanten
2021-08-03 23:04:24 +02:00
committed by GitHub
parent 1d4e434645
commit ef3d618d6c
43 changed files with 236 additions and 130 deletions

View File

@@ -1,7 +1,8 @@
import { ErrorRequestHandler } from 'express';
import { emitAsyncSafe } from '../emitter';
import env from '../env';
import { BaseException, MethodNotAllowedException } from '../exceptions';
import { MethodNotAllowedException } from '../exceptions';
import { BaseException } from '@directus/shared/exceptions';
import logger from '../logger';
import { toArray } from '../utils/to-array';