diff --git a/lib/ResponseDefinitions.php b/lib/ResponseDefinitions.php index 9aefa5e39..6a8acca02 100644 --- a/lib/ResponseDefinitions.php +++ b/lib/ResponseDefinitions.php @@ -19,16 +19,16 @@ * } * * @psalm-type FormsQuestionExtraSettings = array{ - * allowOtherAnswer?: ?bool, - * allowedFileExtensions?: ?list, - * allowedFileTypes?: ?list, - * maxAllowedFilesCount?: ?int, - * maxFileSize?: ?int, - * optionsLimitMax?: ?int, - * optionsLimitMin?: ?int, - * shuffleOptions?: ?bool, - * validationRegex?: ?string, - * validationType?: ?string + * allowOtherAnswer?: bool, + * allowedFileExtensions?: list, + * allowedFileTypes?: list, + * maxAllowedFilesCount?: int, + * maxFileSize?: int, + * optionsLimitMax?: int, + * optionsLimitMin?: int, + * shuffleOptions?: bool, + * validationRegex?: string, + * validationType?: string * } * * @psalm-type FormsQuestionType = "dropdown"|"multiple"|"multiple_unique"|"date"|"time"|"short"|"long"|"file"|"datetime" diff --git a/openapi.json b/openapi.json index 55c77fc76..df7929dd3 100644 --- a/openapi.json +++ b/openapi.json @@ -102,6 +102,7 @@ "expires", "fileFormat", "fileId", + "filePath", "isAnonymous", "lastUpdated", "submitMultiple", @@ -404,54 +405,44 @@ "type": "object", "properties": { "allowOtherAnswer": { - "type": "boolean", - "nullable": true + "type": "boolean" }, "allowedFileExtensions": { "type": "array", - "nullable": true, "items": { "type": "string" } }, "allowedFileTypes": { "type": "array", - "nullable": true, "items": { "type": "string" } }, "maxAllowedFilesCount": { "type": "integer", - "format": "int64", - "nullable": true + "format": "int64" }, "maxFileSize": { "type": "integer", - "format": "int64", - "nullable": true + "format": "int64" }, "optionsLimitMax": { "type": "integer", - "format": "int64", - "nullable": true + "format": "int64" }, "optionsLimitMin": { "type": "integer", - "format": "int64", - "nullable": true + "format": "int64" }, "shuffleOptions": { - "type": "boolean", - "nullable": true + "type": "boolean" }, "validationRegex": { - "type": "string", - "nullable": true + "type": "string" }, "validationType": { - "type": "string", - "nullable": true + "type": "string" } } },