You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a negative lookbehind to a regular expression in my field validation (.net core api with swashbuckle swaggerui) the resulting swagger json is marked with an "invalid" badge.
But the regexp pattern is working just fine and the swagger seems to be valid.
Even the swagger online editor is not marking it as invalid.
The problem lies in the "pattern": "^(?<![\/\. ])$"
I narrowed it down to the "<" character. removing that the json swagger validates.
of course removing it is not a solution because i need it for the negative lookbehind.
Hello,
When adding a negative lookbehind to a regular expression in my field validation (.net core api with swashbuckle swaggerui) the resulting swagger json is marked with an "invalid" badge.
But the regexp pattern is working just fine and the swagger seems to be valid.
Even the swagger online editor is not marking it as invalid.
The problem lies in the "pattern": "^(?<![\/\. ])$"
I narrowed it down to the "<" character. removing that the json swagger validates.
of course removing it is not a solution because i need it for the negative lookbehind.
The swagger json:
The message:
kind regards,
Richard
The text was updated successfully, but these errors were encountered: