scala-play-server.simpleParentJsonFormat.mustache Maven / Gradle / Ivy
val innerFormat = Format.of[{{parent}}]
Format(
innerFormat.map(inner => {{classname}}(inner)),
{{classVarName}} => innerFormat.writes({{classVarName}}.{{#isArray}}items{{/isArray}}{{#isMap}}additionalProperties{{/isMap}}
)