json-schema-compare icon indicating copy to clipboard operation
json-schema-compare copied to clipboard

Order in array isn't ignored

Open michaIT opened this issue 6 years ago • 1 comments
trafficstars

My JSON has the following values: channels

The result is false. When I set ignore: ['channels'] - result is true.

I'm a little bit confused because for the same case is a different result via RunKit - the result is true: https://npm.runkit.com/json-schema-compare

`var compare = require('json-schema-compare')

var isEqual = compare({ title: 'title 1', type: ['object'], dependencies: { name: ['age', 'lastName'] } }, { title: 'title 2', type: 'object', dependencies: { name: ['lastName', 'age'] } }, { ignore: ['title'] })`

michaIT avatar Sep 13 '19 11:09 michaIT

I don't understand, channels is not a valid schema keyword. Are you using it to compare json values? It is meant to compare JSON schemas.

Or is it used as dependencies as in my example? More data is required, can you give me a full example of what you are trying to do?

mokkabonna avatar Feb 29 '20 17:02 mokkabonna