Skip to content

Make polymorphism support an option #27

Description

@DamianEdwards

Supporting polymorphism requires the entire object graph of the object being validated be walked every time as any member of a type maybe a descendent type at runtime for that instance (modulo sealed types). This is obviously expensive so consider adding an option to make polymorphism an option (static property or new options object passed in to TryValidate). When disabled only the declared type of members would be considered when determining if a member has anything warranting validation (which is cached).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions