Closed gpathak18 closed 6 years ago
Hi @gpathak18
It looks like you have imported your seperate file with the schema wrong.
Try import MySchema from 'whatever.json';
Hi @pubkey
Currently my import statement is like -
import * as MySchema from '../../whatever.json';
This worked and schema/collection was created. But then it failed as I added "primary" attribute.
Than I changed the import as per your comment to 'import MySchema from '../../whatever.json'; and it worked.
Not sure if there is anything need a fix. This can be closed if not.
Thank you for your response on that.
No this does not need a fix. There is just a difference between and default and an asterix import. Good that your code works now.
Case
Bug
Issue
Getting Schema validation error for two cases -
My Schema is defined in separate json file - names.schema.json
Info
Code