dapper91 / pydantic-xml

python xml for humans
https://pydantic-xml.readthedocs.io
The Unlicense
141 stars 14 forks source link

[Question] Disable namespace inheritance #197

Open elio2t opened 2 weeks ago

elio2t commented 2 weeks ago

First, thank you for this very helpful lib!

I found that in the docs: "The namespace and namespace mapping can be declared for a model. In that case all fields except attributes inherit them"

Simple question: is it possible to disable this behaviour ? As a workaround I set ns=""for all children elements but it's not ideal :)

dapper91 commented 4 days ago

@elio2t Hi,

Right now there is no way to disable it. The only way to set it manually.