-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Milestone
Description
when validating the spec's request and response types, it would be useful to be able to know the scope name of the type.
- You can't create an instance of the type from the spec typename string alone, you would need the dto copy from the spec's origin also
- Determining information about the type from the string is likely to be fragile.
For example, I can use the scope to reliably determine if a type is from the CLR or not using
instance.GetType().Module.ScopeName == "CommonLanguageRuntimeLibrary"
It might also be an idea to add some additional type information for Requests and Responses such as instance.GetType().IsClass (not a interface or value type), instance.GetType().IsAbstract, instance.GetType().Module.Name, instance.GetType().AssemblyQualifiedName