yii2-openapi
yii2-openapi copied to clipboard
Generated REST URL rules should allow dot in URL
Lets say I have path /mail/domain/{name} in OpenAPI.
REST URL rules generated for it will be
GET mail/domain/<name:[\w-]+>
Above rule will not function for URL http://example.com/mail/domain/github.com
because github.com have dot (.)
Regex to include dot (.) will be mail/domain/<name:[\w.-]+>. So API generator should generate this URL rule to consider dot.