Skip to content

Commit

Permalink
feat(post-type-photo): loosen photo field validation
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Apr 10, 2024
1 parent 27c9504 commit 8dab984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/post-type-photo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class PhotoPostType {
errorMessage: (value, { req }) =>
req.__(`posts.error.media.empty`, "/photos/image.jpg"),
exists: { if: (value, { req }) => isRequired(req, "photo") },
isURL: true,
notEmpty: true,
},
"photo.*.alt": {
errorMessage: (value, { req }) =>
Expand Down

0 comments on commit 8dab984

Please sign in to comment.