angular-servicestack
angular-servicestack copied to clipboard
Validation doesn't seem to work
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?
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.
Ouch!! I just spent 2 hours tracking down this issue.