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

Cannot read property 'statusCode' of undefined #1

Closed
ColinMaudry opened this Issue Sep 29, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@ColinMaudry

ColinMaudry commented Sep 29, 2017

I try to validate local data with a remote schema. I'm really happy I finally found a tool that handles remote schema :)

However, in command line, I get the following error:

$ json-schema-remote test-output.json https://raw.githubusercontent.com/etalab/format-commande-publique/master/sch%C3%A9mas/json/paquet.json
downloading from  test-output.json 

downloading from  https://raw.githubusercontent.com/etalab/format-commande-publique/master/sch%C3%A9mas/json/paquet.json 

Cannot read property 'statusCode' of undefined
@ColinMaudry

This comment has been minimized.

Show comment
Hide comment
@ColinMaudry

ColinMaudry Sep 29, 2017

I don't get this error when the data is also remote. Are both data and schema expected to be remote?

ColinMaudry commented Sep 29, 2017

I don't get this error when the data is also remote. Are both data and schema expected to be remote?

@simon-scherzinger

This comment has been minimized.

Show comment
Hide comment
@simon-scherzinger

simon-scherzinger Aug 31, 2018

Member

Sorry for getting back to this so late.

The problem is that json-schema-remote only supports two types of input. A JSON object OR a URL string.

The usage with a local file path is not supported.

Member

simon-scherzinger commented Aug 31, 2018

Sorry for getting back to this so late.

The problem is that json-schema-remote only supports two types of input. A JSON object OR a URL string.

The usage with a local file path is not supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment