>From the "Deutsche Bahn"

https://developer.deutschebahn.com/store/apis/info?name=Timetables&version=v1&provider=DBOpenData

I have a Swagger file with the following entry (YAML also available)


JSON
      "connectionStatus": {
         "description": "removed",
         "enum": [
            "w",
            "n",
            "a"
         ]
      },

When I codegen this to JAVA, I get a reasonable result:
    
-> JAVA

@JsonAdapter(ConnectionStatus.Adapter.class)
public enum ConnectionStatus {
  W("w"),
  N("n"),
  A("a");

  private  value;
...

For Android it is confusing: no enums

-> Android
  public class ConnectionStatus {

  ---- No enums here

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }


And for Kotlin (my first choice), enums are empty:

-> Kotlin

 */
enum class ConnectionStatus(val value: ){

)


Did I miss any relevant settings?


-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to