-
Notifications
You must be signed in to change notification settings - Fork 889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposed resolution of issue #157 and #149 #173
Conversation
…orrecting previously present 'Warnings'.
@@ -18,6 +20,7 @@ public interface OwnerMapper { | |||
|
|||
Owner toOwner(OwnerDto ownerDto); | |||
|
|||
@Mappings(value = {@Mapping(target = "id", ignore = true), @Mapping(target = "pets", ignore = true)}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: we could avoid the @Mappings
annotation
See https://mapstruct.org/documentation/stable/reference/html/#basic-mappings
public ErrorInfo(Exception ex) { | ||
this(ex.getClass().getName(), ex.getLocalizedMessage()); | ||
} | ||
private ProblemDetail detailBuild(Exception ex, HttpStatus status) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: could you please split your Pull Request into 2 PR?
…149 and PR #173) (#175) * feat: Implements the use of ProblemDetail for HTTP error responses. * fix: Fixing OpenAPI documentation and implementing date and time details in ProblemDetail. * fix: Implements some adjustments to properties. * fix: Adjusts the Time Sample property to the ISO 8601 standard.
Fixing warnings regarding class mappings with Map Struct as per Pull Request #168 and from issue #157.
Implemented the use of ProblemDetail in error responses according to issue #149.