Open sneakers-the-rat opened 8 months ago
I'm not sure. I would assume that the list of slots and dictionary of attributes in a class definition are ordered and we can take advantage of that, but I would want @cmungall or someone else from linkml to confirm...
Ordering is preserved, but it's good to be explicit. The ordering could be lost for example in serializing a schema to OWL
That's fair. Maybe outside the scope of this issue, but is there some kind of schema for different generators? I am only really familiar with the pydantic generator & i think a decent amount of schemaview, but if not it might be nice to start doing that so that we can keep track of which target formats need to have array order explicitly encoded vs those that encode it naturally so we could do ergonomic things like allow axis to be implicit in the source definition, but then know to automatically generate explicit indices when generating OWL. low priority tho. feel free to close this
Small question - I like the ability to explicitly declare axis order with
axis_index
!!! is it also the case that the order of the axis declaration is meaningful in the absence of an explicitaxis_index
?