fix xml marshaling

In some (most) cases, disabled chars may not be specified. if this is
the case, they should be omitted.
This commit is contained in:
brent saner 2024-07-17 02:49:44 -04:00
parent cb35a91855
commit c6050a2dc4
Signed by: bts
GPG Key ID: 8C004C2F93481F6B

View File

@ -50,7 +50,7 @@ type GenOpts struct {
// CountExtended specifies how many extended symbols (0x80 to 0xff) should be specified at a minimum.
CountExtended uint `json:"extended" toml:"extended" yaml:"Number of Extended Symbols" xml:"numXSymbols,attr"`
// DisabledChars includes characters that should NOT be included from the above selection options.
DisabledChars CharSet `json:"disabled_chars" toml:"disabled_chars" yaml:"Disabled CharSet" xml:"disabledChars"`
DisabledChars CharSet `json:"disabled_chars,omitempty" toml:"disabled_chars,omitempty" yaml:"Disabled CharSet,omitempty" xml:"disabledChars,omitempty"`
// LengthMin specifies how long (in characters/bytes) each password should be at minimum. Use 0 for no minimum.
LengthMin uint `json:"length_min" toml:"length_min" yaml:"Minimum Length" xml:"minLen,attr"`
/*