Skip to content

Fix small bug if imported xml has also the stardard namespace included#1832

Merged
oroulet merged 3 commits intoFreeOpcUa:masterfrom
KauzenAI:master
Apr 28, 2025
Merged

Fix small bug if imported xml has also the stardard namespace included#1832
oroulet merged 3 commits intoFreeOpcUa:masterfrom
KauzenAI:master

Conversation

@lkaupp
Copy link
Contributor

@lkaupp lkaupp commented Apr 28, 2025

This minor adjustment resolves a bug that occurs when importing an XML file with the standard "http://opcfoundation.org/UA/" namespace. Without this fix, the subsequent code would incorrectly shift all namespaces one level deeper, resulting in the following changes:

Level 1 namespaces being treated as Level 0
Level 2 namespaces being treated as Level 1 and so on.

@oroulet
Copy link
Member

oroulet commented Apr 28, 2025

small linting issue

@lkaupp
Copy link
Contributor Author

lkaupp commented Apr 28, 2025

@oroulet could you guide me? idk why the linter is failing. Is there a linter, which i can install locally to prevent these base checks from triggering?

@oroulet
Copy link
Member

oroulet commented Apr 28, 2025

This is the formater. Try 'ruff format '

@oroulet
Copy link
Member

oroulet commented Apr 28, 2025

Maybe some documentation is missing...

@lkaupp
Copy link
Contributor Author

lkaupp commented Apr 28, 2025

@oroulet reformated with ruff, hopefully everything is fine.

@oroulet oroulet merged commit 120d2e8 into FreeOpcUa:master Apr 28, 2025
6 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