Open graemerocher opened 3 years ago
[x] https://github.com/micronaut-projects/micronaut-problem-json/blob/29f4645bf1244c9c3079053778be3e6ab1899fb1/problem-json/src/main/java/io/micronaut/problem/conf/MixInThrowableProblem.java : This essentially "adds" an annotation to another class dynamically depending on a config value. We can't modify the target class (ThrowableProblem) because it's in a library. I see a few options:
support mixins in other json mappers
only allow this feature for jackson
create a custom serializer for this type if there's ever a cross-format approach to doing this
wrap ThrowableProblem
in another class that hides these fields
The last option seems to be the least intrusive, so I'll take a look if this is feasible.
edit: done, PR: https://github.com/micronaut-projects/micronaut-problem-json/pull/69
@yawkat have to upgrade the module at the same time
micronaut-nats: https://github.com/micronaut-projects/micronaut-nats/pull/192
micronaut-liquibase: https://github.com/micronaut-projects/micronaut-liquibase/pull/205
micronaut-pulsar: https://github.com/micronaut-projects/micronaut-pulsar/pull/141
micronaut-jms: https://github.com/micronaut-projects/micronaut-jms/pull/188
micronaut-sql: https://github.com/micronaut-projects/micronaut-sql/pull/516
micronaut-graphql: https://github.com/micronaut-projects/micronaut-graphql/pull/223
micronaut-kafka: https://github.com/micronaut-projects/micronaut-kafka/pull/444
micronaut-security: https://github.com/micronaut-projects/micronaut-security/pull/889
Problem has this bug https://github.com/micronaut-projects/micronaut-problem-json/issues/94
Doesn’t seem like a bug
Micronaut GCP
Micronaut Problem JSON
Micronaut Discovery Client
Micronaut RabbitMQ
Micronaut Security
Micronaut Data
Micronaut MQTT
Micronaut NATs
Micronaut Liquibase
Micronaut Pulsar
Micronaut AWS
Micronaut JMS
Micronaut SQL
Micronaut GraphQL
Micronaut Kafka