harmonyos2-fluent-schemer用于无痛验证的自定义库方案
harmonyos2-fluent-schemer const librarySchema = object ( { dependenciesCount : number ( ) . min ( 0 ) . max ( 10 ) . integer ( ) . optional ( ) , name : string ( ) . minlength ( 2 ) . maxlength ( 10 ) , testCoverage : number ( ) . min ( 0 ) . max ( 100 ) . optional ( ) , lastCommitDate : date ( ) . after ( new Date ( ) . setMonth ( new Date ( ) . getMonth ( ) - 1 ) ) ) , contributors : array ( object ( { username : string ( ) . minlength ( 5 ) , email : string ( ) . pattern ( / S + ) ) } ) )
96.68KB
文件大小:
评论区