forked from loafle/openapi-generator-original
update samples
This commit is contained in:
@@ -1 +1 @@
|
||||
5.4.0-SNAPSHOT
|
||||
6.0.0-SNAPSHOT
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
5.4.0-SNAPSHOT
|
||||
6.0.0-SNAPSHOT
|
||||
@@ -1 +1 @@
|
||||
5.4.0-SNAPSHOT
|
||||
6.0.0-SNAPSHOT
|
||||
@@ -1 +1 @@
|
||||
5.4.0-SNAPSHOT
|
||||
6.0.0-SNAPSHOT
|
||||
Reference in New Issue
Block a user