Skip to content
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

Add type scope name to Request and Response #18

Open
wwwlicious opened this issue Mar 19, 2017 · 0 comments
Open

Add type scope name to Request and Response #18

wwwlicious opened this issue Mar 19, 2017 · 0 comments
Milestone

Comments

@wwwlicious
Copy link
Owner

when validating the spec's request and response types, it would be useful to be able to know the scope name of the type.

  1. 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
  2. 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

@wwwlicious wwwlicious modified the milestone: 2.0 May 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant