angular-servicestack icon indicating copy to clipboard operation
angular-servicestack copied to clipboard

Validation doesn't seem to work

Open overloadnn opened this issue 11 years ago • 2 comments

I can't get validation to work. The "ResponseStatus" get serialized but It seems to be an error in the following line (responseStatus is lowercase).

        this.validationErrors = (_ref7 = this.response) != null ? (_ref8 = _ref7.data) != null ? (_ref9 = _ref8.responseStatus) != null ? _ref9.errors : void 0 : void 0 : void 0;

Am I doing something wrong?

overloadnn avatar Aug 09 '13 17:08 overloadnn

In my Service Stack configuration I emit camal case name for my JSON output like so:

//Set JSON web services to return idiomatic JSON camelCase properties   
ServiceStack.Text.JsConfig.EmitCamelCaseNames = true;

I will make this configureable soon. For now you can either use camel case names for your output or change the necessary references to use the Pascal case names.

kkolstad avatar Aug 24 '13 18:08 kkolstad

Ouch!! I just spent 2 hours tracking down this issue.

tylerforsythe avatar Nov 08 '13 17:11 tylerforsythe