Skip to content
Merged

Dev #246

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

2.14.3 (2025-03-11)
-------------------

- reserved namespaces registration skipped.


2.14.2 (2025-02-24)
-------------------

Expand Down
2 changes: 1 addition & 1 deletion pydantic_xml/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def register_nsmap(nsmap: NsMap) -> None:
"""

for prefix, uri in nsmap.items():
if prefix != '': # skip default namespace
if prefix != '' and not re.match(r"ns\d+$", prefix): # skip default namespace and reserved ones
etree.register_namespace(prefix, uri)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pydantic-xml"
version = "2.14.2"
version = "2.14.3"
description = "pydantic xml extension"
authors = ["Dmitry Pershin <[email protected]>"]
license = "Unlicense"
Expand Down