@sanity/validation 2.22.3-reference-updates.90 → 2.22.6-field-groups.103

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.
@@ -44,7 +44,7 @@ var objectValidators = _objectSpread(_objectSpread({}, _genericValidator.default
44
44
  }
45
45
 
46
46
  if (!(0, _types.isReference)(value)) {
47
- return message || 'Must be a reference to a document';
47
+ return message || true;
48
48
  }
49
49
 
50
50
  var type = context.type,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/validation",
3
- "version": "2.22.3-reference-updates.90+1fe0d324b9",
3
+ "version": "2.22.6-field-groups.103+4fcb654fa",
4
4
  "description": "Validation and warning infrastructure for Sanity projects",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./dist/dts",
@@ -32,8 +32,8 @@
32
32
  "directory": "packages/@sanity/validation"
33
33
  },
34
34
  "devDependencies": {
35
- "@sanity/client": "2.22.3-reference-updates.90+1fe0d324b9",
36
- "@sanity/schema": "2.22.3-reference-updates.90+1fe0d324b9"
35
+ "@sanity/client": "2.22.6-field-groups.103+4fcb654fa",
36
+ "@sanity/schema": "2.22.6-field-groups.103+4fcb654fa"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@sanity/client": "^2.0.0"
@@ -44,9 +44,9 @@
44
44
  }
45
45
  },
46
46
  "dependencies": {
47
- "@sanity/types": "2.22.3-reference-updates.90+1fe0d324b9",
47
+ "@sanity/types": "2.22.6-field-groups.103+4fcb654fa",
48
48
  "date-fns": "^2.16.1",
49
49
  "lodash": "^4.17.15"
50
50
  },
51
- "gitHead": "1fe0d324b945b59dcdfe6f22faf5440a46342840"
51
+ "gitHead": "4fcb654fa1b25c9079d7a2856d56dbf750bcba0f"
52
52
  }
@@ -26,7 +26,7 @@ const objectValidators: Validators = {
26
26
  }
27
27
 
28
28
  if (!isReference(value)) {
29
- return message || 'Must be a reference to a document'
29
+ return message || true
30
30
  }
31
31
 
32
32
  const {type, getDocumentExists} = context