python-drafthorse icon indicating copy to clipboard operation
python-drafthorse copied to clipboard

doc.header.languages = "ger"

Open kuhntob opened this issue 2 months ago • 0 comments

Hi,

Thanks for the work building that library.

There is a minor issue with "doc.header.languages". It's defined as a MultiStringField, but should be a StringField because only one language is allowed: <xs:element name="LanguageID" type="udt:IDType" minOccurs="0"/>.

The change will also affect the example in the README: 'doc.header.languages.add("de") need to be doc. header. languages = "ger" (the value for the language "DE" is showing an error in Valitool, and I think it should be "ger" instead of "DE").

kuhntob avatar Sep 27 '25 14:09 kuhntob