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
@@ -814,6 +821,13 @@ function hoistPropertyAnnotations (property: model.Property, jsDocs: JSDoc[]): v
814
821
if(docUrl!=null){
815
822
property.docUrl=docUrl[1].replace(/\r/g,'')
816
823
}
824
+
}elseif(tag==='ext_doc_id'){
825
+
assert(jsDocs,value.trim()!=='',`Property ${property.name}'s @ext_doc_id is cannot be empty`)
826
+
property.extDocId=value
827
+
constdocUrl=docIds.find(entry=>entry[0]===value)
828
+
if(docUrl!=null){
829
+
property.extDocUrl=docUrl[1].replace(/\r/g,'')
830
+
}
817
831
}elseif(tag==='server_default'){
818
832
assert(jsDocs,property.type.kind==='instance_of'||property.type.kind==='union_of'||property.type.kind==='array_of',`Default values can only be configured for instance_of or union_of types, you are using ${property.type.kind}`)
819
833
assert(jsDocs,!property.required,'Default values can only be specified on optional properties')
0 commit comments