Skip to content

Add type scope name to Request and Response #18

@wwwlicious

Description

@wwwlicious

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions