ajv-merge-patch icon indicating copy to clipboard operation
ajv-merge-patch copied to clipboard

$ref to definitions inside “source” or “with” parts of $merge is not supported

Open gallofeliz opened this issue 5 years ago • 5 comments

Hi,

When the "with" object contains definitions (like '"$ref": "#/definitions/JwtConfig"'), ajv throws an error.

I need to move the "with" "definitions" property to the main object :

            {
                $merge: {
                    source
                    with
                },
                definitions
            }

I think it's an issue :)

Regards

gallofeliz avatar Jan 07 '19 15:01 gallofeliz