@azure/core-client 1.6.1-alpha.20220506.2 → 1.6.1-alpha.20220601.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -166,6 +166,9 @@ class SerializerImpl {
166
166
  this.modelMappers = modelMappers;
167
167
  this.isXML = isXML;
168
168
  }
169
+ /**
170
+ * @deprecated Removing the constraints validation on client side.
171
+ */
169
172
  validateConstraints(mapper, value, objectName) {
170
173
  const failValidation = (constraintName, constraintValue) => {
171
174
  throw new Error(`"${objectName}" with value "${value}" should satisfy the constraint "${constraintName}": ${constraintValue}.`);
@@ -267,8 +270,6 @@ class SerializerImpl {
267
270
  payload = object;
268
271
  }
269
272
  else {
270
- // Validate Constraints if any
271
- this.validateConstraints(mapper, object, objectName);
272
273
  if (mapperType.match(/^any$/i) !== null) {
273
274
  payload = object;
274
275
  }