-
Notifications
You must be signed in to change notification settings - Fork 20
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
Library fails to process includeValidationRules in some cases #91
Comments
I'm getting the same issue on a different xsd. |
I get the same issue on schema2proto's own test file: Capturing the syscalls using strace: strace -f -ofoo java -jar schema2proto --includeValidationRules true --outputDirectory . test-min-max-occurs-range.xsd default/default.proto was opened write only... and then there is "... openat resumed" for the same file descriptor... maybe the .proto output file needs to be re-opened with read permissions for the output validation? This is on linux. |
I have tried to get the validation with different XSDs and it is impossible for me also. I built schema2proto via:
I used this xsd https://www.ibm.com/docs/en/bpm/8.5.7?topic=files-example-xsd-file (as an example)
Which is:
where I change minOccurs to 1 and maxOccurs to 10 inside TestCaseRun. And I execute schema2proto with the following command:
I got for this xsd a normal execution (the same happens with other xsds):
But the .proto file that I got is:
Where the only difference with switch --includeValidationRules false is: import "validate/validate.proto". However I expect some annotations of protovalidate such
Can anyone told me whether they are facing to something similar? In my case it didn't work neither with complex xml nor simple ones like this. Thanks |
When I process following test file with --includeValidationRules true I receive an error "Failed to locate validate/validate.proto".
Example file: https://combat.vision/xsds/2019/04/11/MIP-IES.xsd
Console parameters: --includeValidationRules true --outputDirectory /home/user/MIP /home/user/MIP-IES.xsd
Result proto files: proto.zip
Source XSD file: MIP-IES.zip
The text was updated successfully, but these errors were encountered: