Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace rule not working to create shared types #147

Open
adamdecaf opened this issue Jan 9, 2023 · 0 comments
Open

replace rule not working to create shared types #147

adamdecaf opened this issue Jan 9, 2023 · 0 comments

Comments

@adamdecaf
Copy link

adamdecaf commented Jan 9, 2023

I'm trying to generate Go code from some ISO20022 xsd files and running into an issue. Replace rules are supposed to take the form of regex -> regex, right?

Running this and lots of other variations seems to replace nothing. Without type and string I can see replacements. Escaping the special characters doesn't seem to help.

xsdgen \
  -pkg foo \
  -r 'type Max(\d*)Text string -> type Max${1}Text common.Max${1}Text' \
  -o gen/head_001_001_03/head_001_001_03.go \
  ./xsd/head.001.001.03.xsd

I'm trying to use shared types common package to enhance validation / formatting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant