Closed Heucles closed 6 years ago
I just updated the Markdown formatting of your message and will have a look at the reported bug soon.
For me this works as expected. I get the following result:
{"type":"string"}
What versions of node, npm and SWI-Prolog are you using? Please provide the output of npm version
and swipl --version
.
npm -version
5.5.1
node -v
v8.4.0
swipl --version
SWI-Prolog version 7.2.3 for x86_64-linux
Also I think it is worth mentioning that my node was installed using NVM and aldo I didn´t installed xsd2json globally, only locally on the project.
Ah, this is due to a known bug in SWI-Prolog 7.2.x, as documented in the readme file. Please upgrade your installation of SWI-Prolog, either with your package manager or using the SWI-Prolog version manager swivm.
I will close this issue. If the error occurs for a newer version of SWI-Prolog, too, please open a new issue.
Used xsd:
code:
Error message: