@sanity/schema 5.3.0-next.4 → 5.3.0-next.41

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.
package/lib/_internal.js CHANGED
@@ -930,6 +930,12 @@ var assetSourceData = {
930
930
  type: "string",
931
931
  readOnly: !0
932
932
  },
933
+ {
934
+ name: "thumbHash",
935
+ title: "ThumbHash",
936
+ type: "string",
937
+ readOnly: !0
938
+ },
933
939
  {
934
940
  name: "hasAlpha",
935
941
  title: "Has alpha channel",
@@ -2416,7 +2422,7 @@ function extractSchema(schemaDef, extractOptions = {}) {
2416
2422
  continue;
2417
2423
  hasAssetRequired(field?.type?.validation) && value.type === "object" && (value.attributes.asset.optional = !1);
2418
2424
  }
2419
- const optional = extractOptions.enforceRequiredFields ? fieldIsRequired === !1 : !0;
2425
+ const optional = extractOptions.enforceRequiredFields ? !fieldIsRequired : !0;
2420
2426
  attributes[field.name] = {
2421
2427
  type: "objectAttribute",
2422
2428
  value,