Skip to content

Commit

Permalink
Merge pull request #74 from caroillemann/fix/make-asset-properties-re…
Browse files Browse the repository at this point in the history
…quired-nullable

Make asset properties required nullable
  • Loading branch information
dohomi authored Sep 2, 2024
2 parents f4d7980 + 6282b6d commit 4a7c02d
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/genericTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,40 +33,40 @@ async function generateAssetTypeIfNotYetGenerated(title: string, compilerOptions
'$id': '#/asset',
title: title,
type: 'object',
required: ['id', 'filename', 'name'],
required: ['id', 'alt', 'name', 'focus', 'source', 'title', 'filename', 'copyright'],
properties: {
_uid: {
type: 'string'
},
id: {
type: 'number'
type: ['number', 'null'],
},
alt: {
type: 'string'
type: ['string', 'null']
},
name: {
type: 'string'
},
focus: {
type: 'string'
type: ['string', 'null']
},
source: {
type: 'string'
type: ['string', 'null']
},
title: {
type: 'string'
type: ['string', 'null']
},
filename: {
type: 'string'
},
copyright: {
type: 'string'
type: ['string', 'null']
},
fieldtype: {
type: 'string'
},
meta_data: {
type: ["null", "object"]
type: ['null', 'object']
},
is_external_url: {
type: 'boolean'
Expand Down Expand Up @@ -454,6 +454,3 @@ async function generateTableTypeIfNotYetGenerated(title: string, compilerOptions
console.log('ERROR', e)
}
}



0 comments on commit 4a7c02d

Please sign in to comment.