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

Generator declares codemeta.json files invalid when a property has multiple values #10

Open
AidanKelley opened this issue Jan 13, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@AidanKelley
Copy link

Correct me if I am wrong, but my belief is that in JSON-LD properties are allowed to have multiple values (using an array). For example, the description property should be allowed to have multiple values, say if you had descriptions in different languages.

The current behavior of the generator, when importing a file with multiple descriptions, is to display the descriptions in the descriptions window separated by commas. However, if I hit the "validate" button, it says it is invalid.

If codemeta spec requires that there be only one description, I apologize for posting this issue in the wrong place as it should be a suggestion for codemeta rather than a bug with the generator. However, it seems to me that codemeta is a combination of an ontology and JSON-LD, so there should be no issue with having multiple descriptions. In this case, there is a bug in the validation section of the generator.

@progval progval added the bug Something isn't working label Jan 13, 2021
@progval
Copy link
Member

progval commented Jan 13, 2021

You're right, it's valid for Codemeta.

Having multiple values in this UI is a bit of an issue, and intentionally not supported here, because it would make the UI too complex.

That said, it shows an error when importing ("description" must be text, not ["foo","bar"]), but the import succeeds nonetheless, and then you can export. That's definitely a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants