Skip to content

Error: Unsupported $ref value: #/definitions/mongoIdentifier #5

@DannyBrown-xx

Description

@DannyBrown-xx

Hi,

I am using a JSON schema that passes through both http://www.jsonschemavalidator.net/ and http://jsonschemalint.com/draft4/. It uses $ref attributes which point to a defitions section inside the same JSON schema file, e.g. #/definitions/mongoIdentifier.

This fails both when I pass I pass the definitions from the schema file as a parameter

const mongooseSchema = createMongooseSchema(schema.definitions, schema);

and when I pass an empty object:

const mongooseSchema = createMongooseSchema({ }, schema);

The library says this is currently unsupported. How easy would it be to remedy, or am I just doing something incorrectly?

Thanks,
Danny

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions