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
Also, since Any is not really nice to use, and a more common use case would be to generate with Json:
caseclassFoo(name: String, anything: Json)
or:
caseclassFoo(name: String, anything: Json.Obj)
instead of Any/Map[String, Any]…
we should add an ability to configure this.
Obviously we need to provide a way to generate a zio-json compatible code,
but perhaps other Json ASTs could be supported (like circe/playjson/etc'…)?
This controls both the code, and the required imports.
default should be Any/Map[String, Any], since it would be surprising to generate code that would fail to compile unless you add a 3rd party dependency.
The text was updated successfully, but these errors were encountered:
defining "Any" in OpenAPI according to the docs: https://swagger.io/docs/specification/v3_0/data-models/data-types/
These won't work in zio-http-gen.
Expectation:
should be rendered as:
Also, support "free form objects:
e.g:
should be rendered as:
Also, since
Any
is not really nice to use, and a more common use case would be to generate with Json:or:
instead of
Any
/Map[String, Any]
…we should add an ability to configure this.
Obviously we need to provide a way to generate a zio-json compatible code,
but perhaps other Json ASTs could be supported (like circe/playjson/etc'…)?
This controls both the code, and the required imports.
default should be
Any
/Map[String, Any]
, since it would be surprising to generate code that would fail to compile unless you add a 3rd party dependency.The text was updated successfully, but these errors were encountered: