After replacing the slash with underscore character, the syntax error is gone:
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.
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.
After replacing the slash with underscore character, the syntax error is gone:
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.