df-structures icon indicating copy to clipboard operation
df-structures copied to clipboard

codegen should issue a diagnostic for a present but blank `name` on a field

Open ab9rf opened this issue 1 year ago • 1 comments

alternatively, it should delete them and let the usual anon handling take place

right now, if an field element has name='' then codegen.out.xml will have a blank name attribute but no ld:anon-name attribute (as is generated if name is absent). while the headers get an anon name in the expected manner, codegen.out.xml fails to reflect what is generated in headers, which shouldn't happen

related discord discussion

ab9rf avatar Aug 11 '24 01:08 ab9rf

We should probably also disallow this in the schema, if that's possible.

lethosor avatar Aug 11 '24 04:08 lethosor