-
Notifications
You must be signed in to change notification settings - Fork 7
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
Problem JSON to M5 and register problem+json as an additional type for JSON Codec #251
Conversation
|
||
@Override | ||
public Map<String, Object> read(String name, InputStream input) throws IOException { | ||
return propertySource.asMap(); |
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.
Not sure how this method be overriden in this context
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.
this should be done with a @ContextConfigurer
instead
@graemerocher it does not to work with a |
@graemerocher I have documented as a breaking change that the user needs to specify the additional type for the JSON codec via configuration. |
Kudos, SonarCloud Quality Gate passed! |
the other option is to define a |
This PR updates to Micronaut Core M5 but also provides a PropertySourceLoader so that the user does not have to explicitly register problem+json as an additional type for JSON Codec.