Skip to content

Commit 1dc6a48

Browse files
authored
Merge pull request #246 from dapper91/dev
- reserved namespaces registration skipped.
2 parents e2b0ce8 + 00f560f commit 1dc6a48

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.rst

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog
22
=========
33

4+
2.14.3 (2025-03-11)
5+
-------------------
6+
7+
- reserved namespaces registration skipped.
8+
9+
410
2.14.2 (2025-02-24)
511
-------------------
612

pydantic_xml/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def register_nsmap(nsmap: NsMap) -> None:
8181
"""
8282

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

8787

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pydantic-xml"
3-
version = "2.14.2"
3+
version = "2.14.3"
44
description = "pydantic xml extension"
55
authors = ["Dmitry Pershin <[email protected]>"]
66
license = "Unlicense"

0 commit comments

Comments
 (0)