-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat!: big refactoring of internals #81
Commits on Mar 11, 2022
-
feat!: big refactoring of internals
* Refactored the way the library does validation: now we use github.com/go-playground/validator/v10 instead of custom ones. * Now Parse() always return ValidationErrors containing one or more ValidationError if any validation error is present. * The parser tries not to stop the validation early and give as many errors as possible immediately. * The strict mode was removed * The default output is now errorformat friendly (https://vim-jp.org/vimdoc-en/quickfix.html#error-file-format) * pcvalidate learned the -json switch to ouput the report as JSON * Specify the errored keys as a subset of JSONPath (fe. documentation.eng.features[3]) Fix italia#76, Fix italia#19, Fix italia#74, Fix italia#60.
Configuration menu - View commit details
-
Copy full SHA for 1bfb94c - Browse repository at this point
Copy the full SHA 1bfb94cView commit details -
test: use publiccode-editor repository for remote validation
Use the italia/publiccode-editor repository as we can change the publiccode.yml more quickly, if we need to.
Configuration menu - View commit details
-
Copy full SHA for 5ddb42b - Browse repository at this point
Copy the full SHA 5ddb42bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 81e6e09 - Browse repository at this point
Copy the full SHA 81e6e09View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ce0fe6 - Browse repository at this point
Copy the full SHA 9ce0fe6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2529643 - Browse repository at this point
Copy the full SHA 2529643View commit details -
Configuration menu - View commit details
-
Copy full SHA for 41fe408 - Browse repository at this point
Copy the full SHA 41fe408View commit details -
feat!: remove RemoteBaseURL and LocalBasePath
* Remove -remote-base-url from the CLI. By default, files existence it's performed checking remotely using remote raw root URL, which is now autodetected from the publiccode. To check from the local directory use -path * Similarly, the Go API now provides NewParser() and NewParserWithPath(), to use respectively the remote raw URL or a local path.
Configuration menu - View commit details
-
Copy full SHA for c9f289a - Browse repository at this point
Copy the full SHA c9f289aView commit details -
feat: remove the checks on urls
This allows for publiccode.yml to be in a different repository than the one pointed by url and for absolute URLs in publiccode.yml to be outside of the repository. Related to italia/publiccode-crawler#85
Configuration menu - View commit details
-
Copy full SHA for 210392b - Browse repository at this point
Copy the full SHA 210392bView commit details -
refactor!: remove expansion of relative paths
Don't expand the relative path of files, the parser should just deal with parsing and validation.
Configuration menu - View commit details
-
Copy full SHA for 718a41b - Browse repository at this point
Copy the full SHA 718a41bView commit details -
feat: disable isReachable() checks when run under WASM
Disable checks that would most likely run into CORS errors when running under WASM.
Configuration menu - View commit details
-
Copy full SHA for cdd22da - Browse repository at this point
Copy the full SHA cdd22daView commit details
Commits on Mar 12, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 6bbac6e - Browse repository at this point
Copy the full SHA 6bbac6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 38e212d - Browse repository at this point
Copy the full SHA 38e212dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ae5bf3 - Browse repository at this point
Copy the full SHA 8ae5bf3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 93a6435 - Browse repository at this point
Copy the full SHA 93a6435View commit details -
Configuration menu - View commit details
-
Copy full SHA for 68aa429 - Browse repository at this point
Copy the full SHA 68aa429View commit details