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

Fix appliance schema v8, adapt check.py for schema v8 #897

Merged
merged 1 commit into from
Jul 7, 2024

Conversation

b-ehlers
Copy link
Contributor

@b-ehlers b-ehlers commented Jul 7, 2024

Schema v8 is invalid, the "properties" starting in line 570 end in line 724, so "images" and "versions" are no allowed properties. Therefore check.py of the v8 full example from the README.md complain with:

jsonschema.exceptions.ValidationError: Additional properties are not allowed ('images', 'versions' were unexpected)

The "images" and "versions" definitions must be moved up down one level to put them under "properties".

Futhermore check.py checks "md5sum" of the images. With v8 "md5sum" is renamed to "checksum", so accessing the "md5sum" entry will fail for appliances using "checksum".

@grossmj grossmj merged commit 87cd5e7 into GNS3:master Jul 7, 2024
1 check passed
grossmj added a commit to GNS3/gns3-gui that referenced this pull request Jul 7, 2024
@b-ehlers b-ehlers deleted the appliancev8 branch July 7, 2024 15:55
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

Successfully merging this pull request may close these issues.

None yet

2 participants