-
Notifications
You must be signed in to change notification settings - Fork 13
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
Wrong file generated #66
Comments
Yes, Federico, once again you're right. This parameter is not entirely clear. The parameter --output(-o) actually defines the output directory. However, there is the parameter --single-file (-f) over it you can get all the generated code, which actually consists of 2 files: Implementation(Rule Set) and HUMLFramework in one single file. If the -f switch is set, then you can specify the name of this single file with -o. I know that it is not really cleanly implemented at this point. And we should definitely change it. https://docs.openvalidation.io/openvalidation-cli#single-file My suggestion is:
what do you think about this? |
it makes sense to me |
If I run:
java -jar openvalidation.jar --culture en --language java
--rule "your age HAS to be greater than 22" --schema "{ age: 21 }" --output age_check.js
The file
age_check.java
is generated, therefore the output directive is not precisely respected, which is confusing to meThe text was updated successfully, but these errors were encountered: