yii2-openapi icon indicating copy to clipboard operation
yii2-openapi copied to clipboard

Generated REST URL rules should allow dot in URL

Open SOHELAHMED7 opened this issue 3 years ago • 0 comments

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.

SOHELAHMED7 avatar Oct 01 '22 09:10 SOHELAHMED7