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: missing required files should count as an error #80

Merged
merged 3 commits into from
Apr 25, 2024

Conversation

testower
Copy link
Collaborator

No description provided.

@@ -110,6 +110,9 @@ public void validateMissingFile(FileValidationResult fvr) {
fvr.setVersion(version.getVersionString());
fvr.setSchema(version.getSchema(fvr.getFile()).toString());
fvr.setRequired(version.isFileRequired(fvr.getFile()));
if (version.isFileRequired(fvr.getFile())) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is a file only required, if the spec requires it, or also if it is announced in the discoveryFile (alias gbfs.json)?

Copy link
Collaborator Author

@testower testower Apr 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case, if the spec requires it. Missing files announced in discovery file is not considered. Maybe it should be an error on the discovery file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm merging this as is, can we handle the other case in a separate issue?

Copy link

sonarcloud bot commented Apr 25, 2024

@testower testower merged commit dc21dd3 into master Apr 25, 2024
2 checks passed
@testower testower deleted the fix/missing-required-file-counts-as-error branch April 25, 2024 12:53
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