ENUM fields for rules #2

Closed
opened 2024-02-06 15:11:07 +01:00 by florian · 0 comments
Owner

As was pointed out in our most recent discussion about the direction of this project it would be a great addition if some fields could implement a set of allowed values that will be used twofold:

  • Inside of Generate() this method can be used to check whether the values coming from the consumer are plausible.
  • The GET /rule/:rule endpoint will now present the possible ENUM values, which will allow in a better user interface on the client side (ie Dropdowns with only ENUM values)

Implemented thoroughly, this will allow better backend plausibility of values provided, and allow a more userfriendly way of displaying fields where only a set of answers if allowable.

As was pointed out in our most recent discussion about the direction of this project it would be a great addition if some fields could implement a set of *allowed values* that will be used twofold: * Inside of `Generate()` this method can be used to check whether the values coming from the consumer are plausible. * The `GET /rule/:rule` endpoint will now present the possible ENUM values, which will allow in a better user interface on the client side (ie Dropdowns with only ENUM values) Implemented thoroughly, this will allow better backend plausibility of values provided, and allow a more userfriendly way of displaying fields where only a set of answers if allowable.
florian changed title from Dropdown Felder to ENUM fields for rules 2024-02-06 21:23:00 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: florian/hostname-service#2
No description provided.