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

Error loading AWS CloudFormation JSON Schema #505

Closed
mauroj opened this issue Jan 26, 2018 · 2 comments
Closed

Error loading AWS CloudFormation JSON Schema #505

mauroj opened this issue Jan 26, 2018 · 2 comments

Comments

@mauroj
Copy link

mauroj commented Jan 26, 2018

I tried to load the AWS CloudFormation JSON schema located at:
https://d1uauaxba7bl26.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json

I received the following error message: ERROR: Failed to load JSON schema.

These were the steps taken:

I clicked on Setting->Add Schema

Then in the Add JSON Schema window I select:
"Specify a public url. Urls which need authentication or do not have CORS enabled cannot be loaded"

and enter the URL: https://d1uauaxba7bl26.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json
after Clicking OK, I received the error message.

Please advise,
Thank you
Mauro

@josdejong
Copy link
Owner

The document doesn't allow CORS, therefore the website jsoneditoronline.org cannot access it.

Easiest would be to copy and save the document online via jsoneditoronline.org, but this free service has a limit of 1MB, whilst the schema you want to load is 1.2 MB. So, you will have to save a copy of the schema somewhere online yourself, in such a way that it can be loaded by jsoneditor.

@meirotstein
Copy link
Contributor

@mauroj you can put your schema file in Github pages which allows CORS.

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

3 participants