Skip to content

Commit ad9a4d1

Browse files
committed
Merge branch 'master' of github.com:sunrise-php/http-router
2 parents fb35a23 + 37e0952 commit ad9a4d1

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/Dictionary/VariablePattern.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
final class VariablePattern
2020
{
21-
public const SLUG = '[0-9A-Za-z]+(?:-[0-9A-Za-z]+)*';
21+
public const SLUG = '[0-9a-z]+(?:-[0-9a-z]+)*';
2222
public const UINT = '[0-9]+';
2323
public const UUID = '[0-9A-Fa-f]{8}(?:-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12}';
2424
}

src/OpenApi/OpenApiPhpTypeSchemaResolverManager.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ public function enrichDocumentWithDefinitions(array &$document): void
102102
foreach ($this->namedPhpTypeSchemas as $phpTypeSchemaName => $phpTypeSchema) {
103103
$document['components']['schemas'][$phpTypeSchemaName] = $phpTypeSchema;
104104
}
105+
106+
$this->namedPhpTypeSchemas = [];
105107
}
106108

107109
/**

0 commit comments

Comments
 (0)