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

Import error and CLI usage errors in the rest server code #80

Open
ross-spencer opened this issue Aug 15, 2020 · 1 comment
Open

Import error and CLI usage errors in the rest server code #80

ross-spencer opened this issue Aug 15, 2020 · 1 comment

Comments

@ross-spencer
Copy link

It looks like the imports changed and are now deeper set in the repository, and the CLI parsing library calls are now out of date.

@ericprud
Copy link
Contributor

ericprud commented Sep 4, 2020

I had a pending request to factor shex.js into atomic packages, which I finally did in c3c24e8. The upside is that webapp loads in a quarter the time and it's easy to build apps that only have what you want. The down side is that ever file you were working with has moved someplace else (apologies for not having done this ages ago).

I think it may be most efficient to work from the built-in server in packages/shex-cli/validate (called with --serve http://localhost:1234/). I'm bring it back to life right now and will add tests to cli-test.js.

The validate script doesn't have as much code extraneous to acting as a validation server as you might think. There's stuff for reading from stdin and local files but --serve can leverage those if you want to e.g. provide a default schema against which to validate (effectively dedicating the schema included on the command line.

Ping me in gitter and we can look for a way to incorporate any features you've added.

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

No branches or pull requests

2 participants