skohub-io / skohub-editor

Apache License 2.0
5 stars 4 forks source link

Blank page when loading invalid schema, show error message instead #33

Closed acka47 closed 4 years ago

acka47 commented 4 years ago

I made a mistake when editing the schema and when I tried to load the web form at https://skohub.io/editor/ with that schema the page became blank. That would not have been a problem but with every reload the page remained blank. It would be nice if schemas would be validated and an error message was shown when trying to load an invalid schema.

acka47 commented 4 years ago

To repoduce:

  1. Open https://skohub.io/editor/?schema=https://raw.githubusercontent.com/dini-ag-kim/lrmi-profile/9c0693e1833becca304317accb6e0e04c520f86e/draft/schemas/schema.json
  2. Remove the ?schema part and reload. The page will stay blank.