Fixes a typo that causes code generation to fail when a length restriction is present in a schema file. Note that this bug was found when attempting to use the project to generate code for a different specification where a length restriction is specified like so:
To reproduce this, one may paste the lines above into an existing schema file and then attempt to do
make generate
which ultimately fails with this error:
Could not execute template: template: internal/templates/rtp20022/validate.tgo:140:59: executing "internal/templates/rtp20022/validate.tgo" at <.Restriction.MinLength.Value>: nil pointer evaluating *xsd.MinLength.Value
Fixes a typo that causes code generation to fail when a length restriction is present in a schema file. Note that this bug was found when attempting to use the project to generate code for a different specification where a length restriction is specified like so:
To reproduce this, one may paste the lines above into an existing schema file and then attempt to do
which ultimately fails with this error: