class-name parameter regex validator not catching hyphen #6187
Labels
generator
Issues or improvements relater to generation capabilities.
help wanted
Issue caused by core project dependency modules or library
type:bug
A broken experience
WIP
Milestone
What are you generating using Kiota, clients or plugins?
API Client/SDK
In what context or format are you using Kiota?
Linux executable
Client library/SDK language
TypeScript
Describe the bug
when running:
kiota generate -l typescript -d some-openapi-spec.json -c classname-ts -o ./client
an error does not occur.
Expected behavior
The string regex validator should catch this as an invalid class name and return the error that this is not valid.
How to reproduce
kiota generate -l typescript -d some-openapi-spec.json -c classname-ts -o ./client
Open API description file
No response
Kiota Version
1.23.0+e148ba500009faf72a57883f905e1ca922add0e2
Latest Kiota version known to work for scenario above?(Not required)
No response
Known Workarounds
No response
Configuration
No response
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: