Skip to content
This repository was archived by the owner on Oct 7, 2026. It is now read-only.
This repository was archived by the owner on Oct 7, 2026. It is now read-only.

Integration of my features #11

Description

@wald-tq

Hi Rich,

Do you want to incorporate my features in my branch? Some additional work is needed in:

  • fixing the tests
  • CamelCaseProperties is not included (I don't think this belongs in this library)
  • Add tests for error messages from resource files (I don't know how they are used)
  • Documentation changes

The Features I implemented:

  • Get rid of creating Json string by hand
  • Add support for hierarchical view models using a custom attribute
  • Add a feature to configure the error messages using an array for the ordering of the lookup

I am afraid I can't spit each feature off and provide independent pull-requests because of the lack in time.

Right now I am now building my own nuget package and use it in my project.

Regards,
Thomas

Activity

  1. wald-tq commented on Jul 15, 2015

    @wald-tq
    ContributorAuthor

    My latest feature, the configuration of the error messages came also a bigger refactoring which simplifies the function signatures a lot.

    The ResourceNamespace and ResourceAssemblyName doesn't need to get passed around anymore.

    You can now add the error Message formatter like this in the Controller:

                ValidationHelper._errorMessageFormatter = new List<IErrorMessageFormatter> {
                    new AttributeErrorMessageFormatter(),
                    new ResourceErrorMessageFormatter{ResourceNamespace = "Namespace", ResourceAssemblyName = "Assembly"},
                    new DefaultErrorMessageFormatter(),
                };
                var valHelper = new ValidationHelper();
                object jsonObject = valHelper.GetValidations(dtoObjectName, "AATestAPI.Models", "AATestAPI");
  2. richinator38 commented on Jul 30, 2015

    @richinator38
    Contributor

    Sorry, I've been studying for certification exams. Done now and hope to look at this soon. I'd like to implement your stuff, I just need a chunk of time. Thanks for your work!

  3. wald-tq commented on Aug 3, 2015

    @wald-tq
    ContributorAuthor

    No problem, thanks for your reply!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions