forked from loafle/openapi-generator-original
* [PHP/Dart/Python] Correctly escape strings in single quotes (Fixes #17582) * Move escapeTextInSingleQuotes method to DefaultCodegen, add docblock
This commit is contained in:
@@ -255,7 +255,7 @@ class PetController extends Controller
|
||||
$asserts = [];
|
||||
$asserts[] = new Assert\NotNull();
|
||||
$asserts[] = new Assert\All([
|
||||
new Assert\Choice([ "available", "pending", "sold" ])
|
||||
new Assert\Choice([ 'available', 'pending', 'sold' ])
|
||||
]);
|
||||
$asserts[] = new Assert\All([
|
||||
new Assert\Type("string"),
|
||||
|
||||
Reference in New Issue
Block a user