@@ -56,7 +56,7 @@ export const makeCoreSchema = ({
5656
5757 const computedFields = Object . entries ( documentDef . computedFields ?? { } ) . map < core . ComputedField > (
5858 ( [ name , computedField ] ) => ( {
59- ...utils . pick ( computedField , [ 'description' , 'type' ] ) ,
59+ ...utils . pick ( computedField , [ 'description' , 'type' ] , false ) ,
6060 name,
6161 // NOTE we need to flip the variance here (casting a core.Document to a LocalDocument)
6262 resolve : computedField . resolve as core . ComputedFieldResolver ,
@@ -65,7 +65,7 @@ export const makeCoreSchema = ({
6565
6666 const coreDocumentDef : core . DocumentTypeDef = {
6767 _tag : 'DocumentTypeDef' ,
68- ...utils . pick ( documentDef , [ 'name' , 'description' ] ) ,
68+ ...utils . pick ( documentDef , [ 'name' , 'description' ] , false ) ,
6969 isSingleton : documentDef . isSingleton ?? false ,
7070 fieldDefs,
7171 computedFields,
@@ -80,7 +80,7 @@ export const makeCoreSchema = ({
8080
8181 const coreNestedTypeDef : core . NestedTypeDef = {
8282 _tag : 'NestedTypeDef' ,
83- ...utils . pick ( nestedDef , [ 'description' ] ) ,
83+ ...utils . pick ( nestedDef , [ 'description' ] , false ) ,
8484 name : nestedDef . name ,
8585 fieldDefs : getFieldDefEntries ( nestedDef . fields ?? [ ] ) . map ( ( _ ) =>
8686 fieldDefEntryToCoreFieldDef ( _ , options . fieldOptions ) ,
@@ -135,7 +135,7 @@ const fieldDefEntryToCoreFieldDef = (
135135 fieldOptions : core . FieldOptions ,
136136) : core . FieldDef => {
137137 const baseFields : core . FieldDefBase = {
138- ...utils . pick ( fieldDef , [ 'type' , 'default' , 'description' ] ) ,
138+ ...utils . pick ( fieldDef , [ 'type' , 'default' , 'description' ] , false ) ,
139139 name,
140140 isRequired : fieldDef . required ?? false ,
141141 isSystemField : false ,
@@ -231,7 +231,7 @@ const fieldDefEntryToCoreFieldDef = (
231231 case 'string' :
232232 return {
233233 // needs to pick again since fieldDef.type has been
234- ...utils . pick ( fieldDef , [ 'type' , 'default' , 'description' ] ) ,
234+ ...utils . pick ( fieldDef , [ 'type' , 'default' , 'description' ] , false ) ,
235235 isRequired : fieldDef . required ?? false ,
236236 name,
237237 isSystemField : false ,
@@ -254,7 +254,7 @@ const fieldListItemsToCoreFieldListDefItems = (
254254 case 'markdown' :
255255 case 'mdx' :
256256 case 'image' :
257- return utils . pick ( listFieldDefItem , [ 'type' ] )
257+ return utils . pick ( listFieldDefItem , [ 'type' ] , false )
258258 case 'enum' :
259259 return {
260260 type : 'enum' ,
0 commit comments