v0.140.17

Released May 3rd 2019

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

✨ Highlights

New validation flag: assetRequired()

Image and file fields can can now use the assetRequired() validation rule in order to enforce that an image has an actual image and not just metadata fields.

🐛 Notable bugfixes

  • sanity dataset import no longer overwrites _type field
  • Image and file fields should now show validation errors
  • Validation rules on customized image/file types now work as expected

📓 Full changelog

AuthorMessageCommit
Espen Hovlandsdalform-builder Pass on markers from asset inputs to fieldset (#1281)bb1716cbb
Espen Hovlandsdalform-builder Hide image edit button if no fields and no asset (#1284)802e5b2ba
Thomas Drevontest-studio Access specific tutorial feed324b9f7b9
Thomas Drevondashboard If prop is set, request specific feed for templatef9b39187f
Espen Hovlandsdalimport Don't override _type for imported assets (#1288)372d1f70d
Espen Hovlandsdalclient Raise default timeout, allow overriding per-request (#1286)96b668995
Espen Hovlandsdalvalidation Add new assetRequired-flag (#1285)36428e8aa
Espen Hovlandsdalvalidation Exclude meta fields from object emptiness check (#1282)e9fc73423
Espen Hovlandsdalschema Allow file + image to extend validation (#1283)8b13e880a