Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

Malformed schema error on valid schemas #385

Open
esd-org-uk opened this issue Nov 1, 2017 · 0 comments
Open

Malformed schema error on valid schemas #385

esd-org-uk opened this issue Nov 1, 2017 · 0 comments

Comments

@esd-org-uk
Copy link

Expected Behaviour

I'm creating a very simple json file in Notepad++ as below

{ "title": "Test", "description": "Test", "fields": [ { "name": "Number", "constraints": { "required": true, "type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger" } } ] }

and attempt to validate it using a data file as below

Number
1
ThisLineShouldFail

I would expect this to validate the csv and state that row 3 fails as it is not a non negative integer

Current Behaviour (for problems)

At present it returns an error of

Schema problem: Malformed Schema

JSON schema provided has some structural errors.

as per https://csvlint.io/validation/59f9b66034396f0004000189

Steps to Reproduce (for problems)

Create the CSV and JSON files specified above in Notepad++ and save. At https://csvlint.io browse to the CSV file, then click "Add optional schema (in .json format)" and browse to the JSON file. Click validate.

Your Environment

  • Environment name and version (e.g. Chrome 39, node.js 5.4):

Google Chrome | 62.0.3202.75 (Official Build) (64-bit) (cohort: 62_75_win)
JavaScript | V8 6.2.414.36

  • Operating System and version (desktop or mobile):

Windows 7 Professional Service Pack 1 (desktop)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant