Skip to content

Fix bug where GENERATE_PREFIXES registers the generated prefix but doesn't assign it to the namespace info#268

Merged
Bergmann89 merged 3 commits into
Bergmann89:masterfrom
g-pichler:generate_prefixes_bug
Apr 28, 2026
Merged

Fix bug where GENERATE_PREFIXES registers the generated prefix but doesn't assign it to the namespace info#268
Bergmann89 merged 3 commits into
Bergmann89:masterfrom
g-pichler:generate_prefixes_bug

Conversation

@g-pichler
Copy link
Copy Markdown
Contributor

The Fallback parser/mod.rs::determine_prefixes inserts the generated prefix into self.schemas.known_prefixes but does not write it back to info.prefix.

…doesn't assign it to the namespace info

The Fallback `parser/mod.rs::determine_prefixes` inserts the
generated prefix into `self.schemas.known_prefixes` but does **not**
write it back to `info.prefix`.
@g-pichler
Copy link
Copy Markdown
Contributor Author

Hi,

Thanks for your effort. You can find example code for this bug here. The README.md contains more details. This branch has the fix applied.

Thanks for all your work you put into this project.

Copy link
Copy Markdown
Owner

@Bergmann89 Bergmann89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @g-pichler,

thanks for your contribution. Looks good to me, just one small request: Instead of patching the expected outcome for the namespaces_qualified tests, could you please remove the GENERATE_PREFIXES flag from the test config? Then the test itself stays as it is and actually tests what it is intended to test. Here is a diff file to apply the changes I suggest: patch.txt

…test stay as-is. Also revert the changes to reference test files.
@g-pichler g-pichler requested a review from Bergmann89 April 28, 2026 09:48
Copy link
Copy Markdown
Owner

@Bergmann89 Bergmann89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks 👍

@Bergmann89 Bergmann89 merged commit 71d06cc into Bergmann89:master Apr 28, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants