Annotation Interface ServerVariable


@Target({}) @Retention(RUNTIME) @Inherited public @interface ServerVariable
An object representing a Server Variable for server URL template substitution.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The default value of this server variable.
    The name of this server variable.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    An optional description for the server variable.
    An array of enum values for this variable.
  • Element Details

    • name

      String name
      The name of this server variable. This is a REQUIRED property.
      Returns:
      the name of the server variable
    • defaultValue

      String defaultValue
      The default value of this server variable. This is a REQUIRED property.
      Returns:
      the defualt value of this server variable
    • enumeration

      String[] enumeration
      An array of enum values for this variable. This field maps to the enum property in the OAS schema and to enumeration field of ServerVariable model.
      Returns:
      array of possible values for this ServerVariable
      Default:
      {}
    • description

      String description
      An optional description for the server variable. CommonMark syntax can be used for rich text representation.
      Returns:
      the description of this server variable
      Default:
      ""