Skip to content
Advertisement

Multiple ‘as-value’ properties defined

I want to create a ENUM which holds different statuses for possible database values and use them also to generate possible drop down statuses in FE:

JavaScript

Full code:

https://github.com/rcbandit111/Search_specification_POC/blob/main/src/main/java/org/merchant/database/service/businesscustomers/BusinessCustomersStatus.java

But when I make a POST request to add a new record I get this error:

JavaScript

Note that I have changed TicketStatus with BusinessCustomersStatus into the error stack.

When I make a request I send this payload:

JavaScript

Do you know how I can solve this issue?

Advertisement

Answer

it may work if changed like this

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement