Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Types.CloudinaryImage fields not affected by the required option #4971

Open
eyrewiut opened this issue Oct 19, 2019 · 0 comments
Open

Types.CloudinaryImage fields not affected by the required option #4971

eyrewiut opened this issue Oct 19, 2019 · 0 comments

Comments

@eyrewiut
Copy link

eyrewiut commented Oct 19, 2019

Expected behavior

The Types.CloudinaryImage field type should be effected by the required: true option so users cant create new records without uploading a cloudinary image

Actual/Current behavior

No matter what I do I can't get the keystone to require a CloudinaryImage before creating or updating a record

Steps to reproduce the actual/current behavior

Create a model with a CloudinaryImage field and set the required option to true:
image: { type: Types.CloudinaryImage, required: true, initial: true }

Environment

The model I am trying to create is for a blog and the project has been coded from scratch rather than using the generator, however, the issue is still present in projects that were created via the generator

Software Version
Keystone 4.2.1
Node.js 10.16.3
Browser Tested in Firefox, Chrome, Safari
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant