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
I'm using .net Swashbuckle.AspNetCore but the problem is on the UI
Describe the bug you're encountering
When the attribute is named emailAddress in the CreateUserCommand Class the example that appears for this field is a long string of random characters instead of "string", as it does for other attributes. I believe the reason for this lies in the pattern attribute we can find for this component in the schema session.
This pattern doesn't appear for other attributes. I tried with both email_address and emailaddress and both failed to have string as an example. below you have an example in which I updated the object with additional fields like test, email, address and email_adress. and both email_address and emailAddress fail to display string in swagger ui.
I don't know how to reproduce has it only happens with one class so far. but it seems a pattern attribute is being added inadvertently to the schema of the CreateUserCommand for unknown reasons.
Q&A (please complete the following information)
Describe the bug you're encountering
When the attribute is named emailAddress in the CreateUserCommand Class the example that appears for this field is a long string of random characters instead of "string", as it does for other attributes. I believe the reason for this lies in the pattern attribute we can find for this component in the schema session.
This pattern doesn't appear for other attributes. I tried with both email_address and emailaddress and both failed to have string as an example. below you have an example in which I updated the object with additional fields like test, email, address and email_adress. and both email_address and emailAddress fail to display string in swagger ui.
To reproduce...
I don't know how to reproduce has it only happens with one class so far. but it seems a pattern attribute is being added inadvertently to the schema of the CreateUserCommand for unknown reasons.
Open Api definition
openapi.json
The text was updated successfully, but these errors were encountered: