Is it possible to generate client scala REST using swagger with default values or Optional[MyType]?

15 views
Skip to first unread message

Serega Sheypak

unread,
Oct 27, 2016, 3:56:20 AM10/27/16
to Swagger
Hi, we are using Swagger to define REST and generate scala client for play! application using classpath "gradle.plugin.org.detoeuf:swagger-codegen-plugin:+" gradle plugin.
All works fine, great. I have few questions:
1. We have model case class and some case class fields should be scala Optional, like Optional[String], Optional[Long] 
2. Some of them should have default value like myField="unset".

What is the right way to do it using swagger-codegen? I wasn't able to figure it out. Can you give me some pointers? Thanks!

tony tam

unread,
Oct 28, 2016, 12:19:42 AM10/28/16
to swagger-sw...@googlegroups.com
Hi, it’s possible that this is per design in swagger-codegen and not configurable.  I suggest opening an issue there and the committers can get back to you.

--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Serega Sheypak

unread,
Oct 29, 2016, 1:33:56 PM10/29/16
to Swagger
Hi, how can I reach them?
committers of swagger or committers codegen?
Thank you!


пятница, 28 октября 2016 г., 6:19:42 UTC+2 пользователь tony tam написал:
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.

tony tam

unread,
Oct 29, 2016, 6:21:57 PM10/29/16
to <swagger-swaggersocket@googlegroups.com>
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages