-
Notifications
You must be signed in to change notification settings - Fork 677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Derived class is not using the base class schema filter #1197
Comments
Do you have a minimal project reproducing this issue? |
Initially it looked like all we needed was to change a false to true: |
OskarKlintrot
added a commit
to OskarKlintrot/Swashbuckle
that referenced
this issue
Dec 1, 2017
…s schema filter
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
VERSION:
5.6.0
STEPS TO REPRODUCE:
Create a base class with a
SwaggerSchemaFilter
-attribute.EXPECTED RESULT:
Classes inheriting the base class should be leveraging the same schema filter as the base class.
ACTUAL RESULT:
The schema filter is ignored on the derived class.
ADDITIONAL DETAILS
To put it in context; I have a JsonConverter that turns a class with a single
IEnumerable
property into an json array instead of a json object. I want to create an abstract base class that has both theJsonConverter
-attribute as well as theSwaggerSchemaFilter
-attribute on it. Then all that is need is to derive fromSingleJsonArrayResponse<T>
in order for both the serialized json and the Swagger example to be correct.Is this by design, an anti pattern or an actual bug?
The text was updated successfully, but these errors were encountered: