-
Notifications
You must be signed in to change notification settings - Fork 42
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
ContextualFieldInfo throws with generic types #143
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using NJsonSchema (11.0.0) with Namotion.Reflection (3.1.1) and encountered a problem during schema generation. Below is a shorted example of my usecase.
During the schema generation and exploration of the
Request
the following exception is thrown:This happens because in the
Fields
property of theContextualType
class theTypeInfo
is generic but theDeclaringType
of the field is not.This could be related to #139.
I currently resolved this issue for me by not having the
Hashid<T>
inherit fromHashid
and copy part of the logic.The text was updated successfully, but these errors were encountered: