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
If you have a property named Validate in your schema you end up with two validates (one property "validate" and a method named "Validate" from your side.
So instead of public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext) change it to IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) (without public and explicit IValidatableObject)
This compiles and should have no side effects as far as I know.
Description
![image](https://user-images.githubusercontent.com/1142765/212496197-0f9e57aa-1cea-4b8d-8a4b-77338c0dc0d8.png)
- Property Validate also generated:openapi-generator version
6.2.1
OpenAPI declaration file content or url
openproject-api (so I can't change it on my own): https://community.openproject.org/api/v3/spec.yml
Generation Details
openapi-generator-cli generate -i https://community.openproject.org/api/v3/spec.yml -g csharp-netcore -o api --additional-properties=sourceFolder=src,optionalProjectFile=false,excludeTests=true
Suggest a fix
The text was updated successfully, but these errors were encountered: