forked from loafle/openapi-generator-original
add validation to model
This commit is contained in:
@@ -198,7 +198,7 @@ class FakeApi
|
||||
if (strlen($password) > 64) {
|
||||
throw new \InvalidArgumentException('invalid length for "$password" when calling FakeApi.testEndpointParameters, must be smaller than or equal to 64.');
|
||||
}
|
||||
if (strlen($password) > 10) {
|
||||
if (strlen($password) < 10) {
|
||||
throw new \InvalidArgumentException('invalid length for "$password" when calling FakeApi.testEndpointParameters, must be bigger than or equal to 10.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user