Current parser reads an OBO file and returns OboOntology type which consists of fields OboTerms which is a list of OboTerms and OboTypeDefs, a list of OboTypeDefs.
This means, the parser already creates a type that is split into components.
It might be better to have the minimal assumption, a Discriminated Union, first, and the OboOntology type later.
Current parser reads an OBO file and returns
OboOntology
type which consists of fieldsOboTerms
which is a list ofOboTerm
s andOboTypeDefs
, a list ofOboTypeDef
s. This means, the parser already creates a type that is split into components.It might be better to have the minimal assumption, a Discriminated Union, first, and the
OboOntology
type later.