Questions tagged [micronaut-serde]

6 questions
3
votes
2 answers

Adding micronaut serde fails starting application as serverless with lanch class as io.micronaut.function.aws.runtime.MicronautLambdaRuntime

micronaut serde to support serialization and deserialization on GraalVM Native Image. But after adding it the lambda stopped working with below error : Request loop failed with: Error decoding HTTP response body: No bean introspection available for…
2
votes
1 answer

Deserializing with generics using Micronaut Serialization without using @SuppressWarnings("unchecked")

I try to deserialize a generic Object W from JSON with Micronaut Serialization , it works, but the compiler produces an "unchecked assignment" warning. I would like to achieve the same result without the warning or using…
jonas
  • 531
  • 4
  • 15
1
vote
1 answer

Micronaut's Page used as a controller method return type is serialized without Page properties

I'm trying to implement a simple paged API using Micronaut 3.7.9, with micronaut-serde-jackson and I've encountered an issue with how my response is serialized, as Page properties are not included. My controller method return type is…
1
vote
1 answer

How to deserialize JSON containing mixed types in Micronaut Serde?

Given the following JSON payload: { "thisIs": "trouble", "stuff": [ "string", 12345, { "something":"else" } ] } Note the array stuff containing a string, a number and an object. Here's the POJO we'd be deserializing…
Gabriel Bauman
  • 2,270
  • 1
  • 22
  • 36
0
votes
0 answers

Configuring Serde Jackson ObjectMappers

In theory, this is a RTFM question, but I've found myself lost in the documentation. With standard Jackson Databind ObjectMapper, we can call mapper.configure(SerializationFeature.WRITE_ENUMS_USING_INDEX, true); How do I achieve the same control…
patrickjp93
  • 399
  • 4
  • 20
0
votes
0 answers

Can I use micronaut-serde-jackson + declarative http client + lombok?

I am attempting to use micronaut-serde-jackson with a declarative HTTP client to make a simple GET request and retrieve a deserialized POJO. The POJO looks like this (I'm using lombok): @Data @Serdeable public class Thing { private String…
Gabriel Bauman
  • 2,270
  • 1
  • 22
  • 36