Closed kgrzybek closed 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)
title
Title
type
details
Originally posted by @sm-g in https://github.com/kgrzybek/modular-monolith-with-ddd/issues/3#issuecomment-593063361
Done
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 oftype
for humans. Better place for messages from validators isdetails
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