You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -680,6 +680,9 @@ function hoistPropertyAnnotations (property: model.Property, jsDocs: JSDoc[]): v
680
680
}elseif(tag==='since'){
681
681
assert(jsDocs,semver.valid(value),`${property.name}'s @since is not valid semver: ${value}`)
682
682
property.since=value
683
+
}elseif(tag==='doc_id'){
684
+
assert(jsDocs,value.trim()!=='',`Property ${property.name}'s @doc_id is cannot be empty`)
685
+
property.docId=value
683
686
}elseif(tag==='server_default'){
684
687
assert(jsDocs,property.type.kind==='instance_of'||property.type.kind==='union_of',`Default values can only be configured for instance_of or union_of types, you are using ${property.type.kind}`)
685
688
assert(jsDocs,!property.required,'Default values can only be specified on optional properties')
0 commit comments