Is there a way to force moshi to have all fields a...
# squarelibraries
p
Is there a way to force moshi to have all fields annotated with
Json(name...)
? I hate the implicit contract between field naming and json representation. I'm always triple-checking that I don't rename something that gets serialized.
p
How does this answer my question?
t
the answer is don't do it if you can at all
fwiw it would probably be fairly easy to write an annotation processor that inspects classes with @JsonClass to ensure they all have the Json(name=)