Hi @erik-ni(erik-ni), we usually recommend a custom renderer for integrating dynamic enums. Simply model the respective propety as a string (like you did). In your custom renderer you can query the database and then delegate to our enum renderers.
To dynamically adapt the validation (for the maximum value) you can either customize Ajv or adapt the used JSON Schema whenever a new maximum value shall be set.