polls min 0, max 20, max length 100, min 0, unique items not needed

This commit is contained in:
nelle 2024-08-18 17:37:12 -06:00
parent 8dac3e00af
commit ae03cdccf7

View file

@ -139,10 +139,10 @@ export const paramDef = {
properties: {
choices: {
type: "array",
uniqueItems: true,
minItems: 2,
maxItems: 10,
items: { type: "string", minLength: 1, maxLength: 50 },
uniqueItems: false,
minItems: 0,
maxItems: 20,
items: { type: "string", minLength: 0, maxLength: 100 },
},
multiple: { type: "boolean", default: false },
expiresAt: { type: "integer", nullable: true },