Adds receipt validation endpoint

This commit is contained in:
Florent Vilmart
2016-02-19 13:06:02 -05:00
parent 02566f0906
commit 9c477907bf
6 changed files with 358 additions and 5 deletions

View File

@@ -105,9 +105,9 @@ ExportAdapter.prototype.redirectClassNameForKey = function(className, key) {
// Returns a promise that resolves to the new schema.
// This does not update this.schema, because in a situation like a
// batch request, that could confuse other users of the schema.
ExportAdapter.prototype.validateObject = function(className, object) {
ExportAdapter.prototype.validateObject = function(className, object, query) {
return this.loadSchema().then((schema) => {
return schema.validateObject(className, object);
return schema.validateObject(className, object, query);
});
};