-
Notifications
You must be signed in to change notification settings - Fork 17
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
Cleanup Avram schema files of K10plus and allow updating the schema #291
Comments
Unfortunatey it is a maven and Java specific thing that during tests the resources are read from the test directory by default, that is the reason for the duplication. Needs further investigation to read it always from the main directory. A symbolic link would be enough for this purpose, but it had a conflict with git. |
I've manually updated
Such changes will always require to change both schema and tests, so it would help to make sure there is only one place to do changes.
I'll do a feature request to fully remove schema from the jar file for phase 3. |
Estimation: 4 hours |
It is done, testable. |
The same situation happened with the vocabularies.json:
I removed all 3 from the |
Thanks! It's better but still we have 5 different files when it should be only one or two: Source
Test
The latter two can be merged for sure, I'm not sure about the other three test files. Unless the schema file can be configured on runtime (which I'd welcome), there is no need to have multiple versions in the tests, no? If symlinks don't work, the test file could be removed from git and copied via script on each test run to be sure its always up-to-date. I've also tried to update the schema in |
The repository contains several copies of Avram Schema of K10plus:
There should at most be
src/main/resources/pica/avram-k10plus-title.json
with the current schemasrc/test/resources/pica/avram-k10plus-title.json
with a smaller schema only used for testing (not sure if this is needed)I was not able to update the schema with
src/main/resources/pica/update-avram-k10plus-title.sh
because afterwards tests did not succeed, so how can the schema be updated?The text was updated successfully, but these errors were encountered: