Implement parsing read only from properties

This commit is contained in:
2024-09-15 13:13:37 +02:00
parent 4f8b8fe029
commit 2a7be40f09

View File

@@ -289,6 +289,12 @@ func parseField(s *goquery.Selection) (Field, error) {
}
res.Type = MapType(CleanUp(typeElement.Text()))
readonlyElement := s.Find("td[align='right']")
if readonlyElement.Length() != 0 {
// return res, fmt.Errorf("no readonly found")
res.Comment = CleanUp(readonlyElement.Text())
}
comments := s.ChildrenFiltered("div")
if comments.Length() == 0 {
return res, fmt.Errorf("no comments found")