Format (enum)

The format to generate the representation of the swagger spec.

API

Format.java
enum Format {
  JSON     (1)
  YAML     (2)
  String mediaType()     (3)
}
1 JSON

Generate a format in JSON ( text/json media type).

2 YAML

Generate a format in YAML ( application/yaml media type).

3 mediaType()

Returns the associated media type for each of the formats.

Members

JSON

Generate a format in JSON ( text/json media type).

YAML

Generate a format in YAML ( application/yaml media type).

mediaType()

Returns the associated media type for each of the formats.

Implementation note: not using subclasses of this enum, otherwise the key in translations.po becomes more complex.