Replace null to undefined in json to register services and functions properly (#335)

This commit is contained in:
Dima 2021-10-22 00:08:08 +03:00 committed by GitHub
parent 2f1d5a0760
commit 9933b38ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ case class OutputFunc(func: FuncRes, types: Types) {
| `
| return callFunction(
| args,
| ${funcDef.asJson.spaces4},
| ${funcDef.asJson.deepDropNullValues.spaces4},
| script
| )
|}""".stripMargin

View File

@ -29,7 +29,7 @@ case class OutputService(srv: ServiceRes, types: Types) {
|export function register${srv.name}(${typed("...args", "any")}) {
| registerService(
| args,
| ${serviceDef.asJson.spaces4}
| ${serviceDef.asJson.deepDropNullValues.spaces4}
| );
|}
""".stripMargin