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

Generated JSON-LD and JSON Schema should not contain "/" character #343

Open
LadyMalande opened this issue Nov 21, 2023 · 2 comments
Open
Assignees
Labels
json-generators JSON generators outside-dependency Issues linked to libraries in use out of scope of this work group

Comments

@LadyMalande
Copy link
Collaborator

When working with generated json-ld context, I came upon a parsing error caused by "/" (slash) character:

jsonld.SyntaxError: Invalid JSON-LD syntax; invalid scoped context.

slashInKeyJSONLDSyntaxError

After replacing the slash with underscore character, the syntax error is gone:

slashInKeyJSONLDSyntaxErrorFixed

The invalid character causes problems mainly with json-ld processing but since json schema is closely tied to working with context, I think changes should be made for both generators - json schema and json-ld.

@jakubklimek
Copy link
Contributor

Reported in digitalbazaar/jsonld.js#543

@LadyMalande
Copy link
Collaborator Author

Thank you for clarification and pointer to the issue in used libraries!

@LadyMalande LadyMalande added the outside-dependency Issues linked to libraries in use out of scope of this work group label Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
json-generators JSON generators outside-dependency Issues linked to libraries in use out of scope of this work group
Projects
None yet
Development

No branches or pull requests

3 participants