Skip to content

Commit

Permalink
add missing chars
Browse files Browse the repository at this point in the history
  • Loading branch information
narcoticfresh committed May 23, 2024
1 parent 3475ded commit c62ef93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Graviton/RestBundle/Trait/SchemaTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function getResponseFromSchema(

// also filter entities!
$fullAsJson = json_encode($schema, JSON_UNESCAPED_SLASHES);
$pattern = '/#\/components\/schemas\/([a-zA-Z0-9]*)/m';
$pattern = '/#\/components\/schemas\/([a-zA-Z0-9\-_]*)/m';
preg_match_all($pattern, $fullAsJson, $matches);

if (!empty($matches[1]) && !empty($schema['components']['schemas'])) {
Expand Down

0 comments on commit c62ef93

Please sign in to comment.