Skip to content

Commit

Permalink
document requirement that default server variable must be in the enum…
Browse files Browse the repository at this point in the history
…eration if it is set
  • Loading branch information
benjamin-confino committed May 14, 2024
1 parent 632268f commit 4d7e51d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@

/**
* The default value of this server variable. This is a REQUIRED property.
* <p>
* If {@code enumeration} is set the default value MUST be one of the values in {@code enumeration}.
*
* @return the defualt value of this server variable
* @return the default value of this server variable
**/
String defaultValue();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ default ServerVariable enumeration(List<String> enumeration) {
* The default value to use for substitution, and to send, if an alternate value is not supplied. This value MUST be
* provided by the consumer and is REQUIRED.
* <p>
* If {@code enumeration} is set the default value MUST be one of the values in {@code enumeration}.
* <p>
* This method sets the defaultValue property of ServerVariable instance to the given defaultValue argument.
* </p>
*
Expand All @@ -117,6 +119,8 @@ default ServerVariable enumeration(List<String> enumeration) {
* The default value to use for substitution, and to send, if an alternate value is not supplied. This value MUST be
* provided by the consumer and is REQUIRED.
* <p>
* If {@code enumeration} is set the default value MUST be one of the values in {@code enumeration}.
* <p>
* This method sets the defaultValue property of ServerVariable instance to the given defaultValue argument and
* returns the modified instance.
* </p>
Expand Down

0 comments on commit 4d7e51d

Please sign in to comment.