You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am trying to generate clients for python and java in a way that python can serialize a model class (to Kafka) and loading it into Java Spring Boot application on the other end.
i have the python side generating pydantic-based models, which are great for serializtion, but on other end i cannot load them because the java generator generate model classes with camelCase field names, where the python side dumps them to json with snake_case field names.
my focus so far has been to try and get jackson to generate json mapping that would allow loading snake_case json into a model, but no success so far. i know pydantic supports serialization_alias which could be used to serialize to another name, but have had no success with this either.
anyone has any idea or experience with such a conversion?
The text was updated successfully, but these errors were encountered:
i am trying to generate clients for python and java in a way that python can serialize a model class (to Kafka) and loading it into Java Spring Boot application on the other end.
i have the python side generating pydantic-based models, which are great for serializtion, but on other end i cannot load them because the java generator generate model classes with camelCase field names, where the python side dumps them to json with snake_case field names.
my focus so far has been to try and get jackson to generate json mapping that would allow loading snake_case json into a model, but no success so far. i know pydantic supports serialization_alias which could be used to serialize to another name, but have had no success with this either.
anyone has any idea or experience with such a conversion?
The text was updated successfully, but these errors were encountered: