-
-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reusing common DSL parts in different LambdaDslJsonBody objects #1796
Labels
enhancement
Indicates new feature requests
Comments
rholshausen
added a commit
that referenced
this issue
May 22, 2024
I've updated the DSL to support doing val x = newJsonObject {
stringType("a", "foo")
id("b", 0L)
integerType("c", 0)
booleanType("d", false)
}
val y = newJsonObject(x) {
stringType("e", "bar")
}
val z = newJsonObject(x) {
nullValue("e")
} |
Excellent, thanks. With what version will this become available? |
4.6.10 has been released |
It seems that version |
4.5.10 released with the change |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wonder if there is an elegant way to extract the common parts of the
LambdaDslJsonBody
and then use them instead of defining them twice?Let's say we have
All but one definition are identical, so I would rather do something like
What am I missing?
The text was updated successfully, but these errors were encountered: