@sanity/schema 5.0.0-next-major.14 → 5.0.0-next-major.20251210134624
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/_chunks-es/Rule.js +2 -2
- package/lib/_chunks-es/Rule.js.map +1 -1
- package/lib/_internal.js +1 -1
- package/lib/_internal.js.map +1 -1
- package/package.json +9 -9
package/lib/_internal.js
CHANGED
|
@@ -2359,7 +2359,7 @@ function extractSchema(schemaDef, extractOptions = {}) {
|
|
|
2359
2359
|
if (inlineFields.has(schemaType.type))
|
|
2360
2360
|
return { type: "inline", name: schemaType.type.name };
|
|
2361
2361
|
if (schemaType.type?.name && sortedSchemaTypeNames.indexOf(schemaType.type?.name) > -1)
|
|
2362
|
-
return { type: "inline", name: schemaType.name };
|
|
2362
|
+
return { type: "inline", name: schemaType.type?.name };
|
|
2363
2363
|
if (isStringType(schemaType))
|
|
2364
2364
|
return createStringTypeNodeDefintion(schemaType);
|
|
2365
2365
|
if (isNumberType(schemaType))
|