Skip to content

codegen should error on unknown XML attributes in tags #821

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ab9rf opened this issue Jan 22, 2025 · 1 comment
Open

codegen should error on unknown XML attributes in tags #821

ab9rf opened this issue Jan 22, 2025 · 1 comment

Comments

@ab9rf
Copy link
Member

ab9rf commented Jan 22, 2025

I recently typoed typename for type-name in a structure definition. codegen silently accepted this erroneous definition instead of warning or erroring.

@lethosor
Copy link
Member

Echoing Discord: this is hard because

  • we don't have an exhaustive list of allowed attributes in codegen already
  • some attributes have defaults (whether they should is another matter...)

maybe the answer is to do schema validation before ingesting files, if we can do that easily from perl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants