update samples

This commit is contained in:
William Cheng
2021-12-07 00:28:43 +08:00
parent e00efe7c8d
commit 0eec937845
6 changed files with 12 additions and 9 deletions

View File

@@ -1 +1 @@
5.4.0-SNAPSHOT
6.0.0-SNAPSHOT

View File

@@ -39,7 +39,7 @@ public class ServerConfiguration {
if (variables != null && variables.containsKey(name)) {
value = variables.get(name);
if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) {
throw new RuntimeException("The variable " + name + " in the server URL has invalid value " + value + ".");
throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + ".");
}
}
url = url.replaceAll("\\{" + name + "\\}", value);

View File

@@ -13,10 +13,13 @@
package org.openapitools.client.auth;
/**
* OAuth flows that are supported by this client
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public enum OAuthFlow {
accessCode, //called authorizationCode in OpenAPI 3.0
implicit,
password,
application //called clientCredentials in OpenAPI 3.0
ACCESS_CODE, //called authorizationCode in OpenAPI 3.0
IMPLICIT,
PASSWORD,
APPLICATION //called clientCredentials in OpenAPI 3.0
}

View File

@@ -1 +1 @@
5.4.0-SNAPSHOT
6.0.0-SNAPSHOT