kgrzybek / modular-monolith-with-ddd

Full Modular Monolith application with Domain-Driven Design approach.
MIT License
11.14k stars 1.75k forks source link

Improve Problem Details response #40

Closed kgrzybek closed 4 years ago

kgrzybek commented 4 years ago

Change Problem Details according to @sm-g comment:

@kgrzybek I'm reading your https://www.kamilgrzybek.com/design/rest-api-data-validation/ and found that title in problem details reponse which your code generates is different from case to case, which violates the RFC7807 (https://tools.ietf.org/html/rfc7807#section-3.1). Title is just function of type for humans. Better place for messages from validators is details or even custom extensions (see examples in https://tools.ietf.org/html/rfc7807#section-3)

Originally posted by @sm-g in https://github.com/kgrzybek/modular-monolith-with-ddd/issues/3#issuecomment-593063361

kgrzybek commented 4 years ago

Done