enumArraySchema = (enumeratedList = [], minItems = 0) => ({
  ...arraySchema,
  items: {
    type: 'string',
    enum: enumeratedList,
  },
  minItems,
})
JSON schema to accept an array of unique strings from an enumerated list.