mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 13:40:38 +03:00
![]() Previously, the XML decoder would panic when encountering a root element with a non-map value due to an unsafe type assertion. The fix adds proper type checking before the map conversion and provides clear error messages to help users identify and fix invalid XML structures. Example error for invalid XML like: <root>just text</root> Will now return: "XML root element 'root' must be a map/object, got string" |
||
---|---|---|
.. | ||
metadecoders | ||
pageparser | ||
frontmatter.go | ||
frontmatter_test.go | ||
lowercase_camel_json.go | ||
lowercase_camel_json_test.go |