Skip to content

Commit 8dab984

Browse files
feat(post-type-photo): loosen photo field validation
1 parent 27c9504 commit 8dab984

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/post-type-photo/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default class PhotoPostType {
3434
errorMessage: (value, { req }) =>
3535
req.__(`posts.error.media.empty`, "/photos/image.jpg"),
3636
exists: { if: (value, { req }) => isRequired(req, "photo") },
37-
isURL: true,
37+
notEmpty: true,
3838
},
3939
"photo.*.alt": {
4040
errorMessage: (value, { req }) =>

0 commit comments

Comments
 (0)