@@ -380,7 +380,9 @@ export type DatasetReadme = typeof DatasetReadme.Type
380380/**
381381 * Represents additional description and details about the dataset.
382382 */
383- export const DatasetDescription = Schema . String . annotations ( {
383+ export const DatasetDescription = Schema . String . pipe (
384+ Schema . maxLength ( 1024 )
385+ ) . annotations ( {
384386 identifier : "DatasetDescription" ,
385387 title : "Description" ,
386388 description : "Additional description and details about the dataset."
@@ -429,6 +431,14 @@ export const DatasetLicense = Schema.String.annotations({
429431} )
430432export type DatasetLicense = typeof DatasetLicense . Type
431433
434+ /**
435+ * Represents the visibility of a dataset.
436+ */
437+ export const DatasetVisibility = Schema . Literal ( "public" , "private" ) . annotations ( {
438+ identifier : "DatasetVisibility"
439+ } )
440+ export type DatasetVisibility = typeof DatasetVisibility . Type
441+
432442/**
433443 * Represents metadata associated with a dataset.
434444 */
@@ -441,7 +451,7 @@ export const DatasetMetadata = Schema.Struct({
441451 keywords : Schema . optional ( Schema . Array ( DatasetKeyword ) ) ,
442452 sources : Schema . optional ( Schema . Array ( DatasetSource ) ) ,
443453 license : Schema . optional ( DatasetLicense ) ,
444- visibility : Schema . optional ( Schema . Literal ( "public" , "private" ) )
454+ visibility : Schema . optional ( DatasetVisibility )
445455} ) . annotations ( {
446456 identifier : "DatasetMetadata" ,
447457 description : "Metadata associated with a dataset."
0 commit comments