nkuprins opened a new issue, #988:
URL: https://github.com/apache/fesod/issues/988

   ### Search before asking
   
   - [x] I searched in the [issues](https://github.com/apache/fesod/issues) and 
found nothing similar.
   
   
   ### Motivation
   
   A field stores a code (`1`), the sheet should show a label (`Success`). 
Today that requires a hand-written `Converter` class per dictionary - there's 
no built-in way to declare a code↔label mapping on a field.
   
   ### Solution
   
   An annotation-based dictionary converter, `@DictFormat`, with an inline 
`"code=label"` form and an enum-backed form for dictionaries that already exist 
in the domain model. 
   
   Full design (API shape, field-type scope, validation rules, and two open 
questions) is written up here:
   https://github.com/apache/fesod/issues/198#issuecomment-3151234567
   To avoid duplication, I will not repeat the same here.
   
   I am open to changes. If this gets approved and someone answers the 2 
questions mentioned there, then I can start gradually implementing that.
   
   
   ### Alternatives
   
   _No response_
   
   ### Anything else?
   
   Related: #198 (original request, Jan 2025)
   
   ### Are you willing to submit a PR?
   
   - [x] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to