@@ -37,7 +37,7 @@ public function getFiles(): array
3737 ],
3838 [
3939 'scope ' => 'service ' ,
40- 'destination ' => 'src/services/{{service.name | caseDash }}.ts ' ,
40+ 'destination ' => 'src/services/{{service.name | caseKebab }}.ts ' ,
4141 'template ' => 'web/src/services/template.ts.twig ' ,
4242 ],
4343 [
@@ -87,7 +87,7 @@ public function getFiles(): array
8787 ],
8888 [
8989 'scope ' => 'method ' ,
90- 'destination ' => 'docs/examples/{{service.name | caseLower}}/{{method.name | caseDash }}.md ' ,
90+ 'destination ' => 'docs/examples/{{service.name | caseLower}}/{{method.name | caseKebab }}.md ' ,
9191 'template ' => 'web/docs/example.md.twig ' ,
9292 ],
9393 [
@@ -117,7 +117,7 @@ public function getFiles(): array
117117 ],
118118 [
119119 'scope ' => 'enum ' ,
120- 'destination ' => 'src/enums/{{ enum.name | caseDash }}.ts ' ,
120+ 'destination ' => 'src/enums/{{ enum.name | caseKebab }}.ts ' ,
121121 'template ' => 'web/src/enums/enum.ts.twig ' ,
122122 ],
123123 ];
@@ -361,7 +361,7 @@ public function getSubSchema(array $property, array $spec): string
361361
362362 public function getFilters (): array
363363 {
364- return [
364+ return \array_merge ( parent :: getFilters (), [
365365 new TwigFilter ('getPropertyType ' , function ($ value , $ method = []) {
366366 return $ this ->getTypeName ($ value , $ method );
367367 }),
@@ -391,9 +391,6 @@ public function getFilters(): array
391391 }
392392 return implode ("\n" , $ value );
393393 }, ['is_safe ' => ['html ' ]]),
394- new TwigFilter ('caseEnumKey ' , function ($ value ) {
395- return $ this ->toPascalCase ($ value );
396- }),
397- ];
394+ ]);
398395 }
399396}
0 commit comments