This repository has been archived by the owner on Jan 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
$ref doesn't work in document root schema #185
Labels
bug
Something isn't working
Comments
@dashameter The issue with definitions only occurs when they are included in a document and then deleted out? Or definitions fail for you regardless of how you try to use them? |
@dashameter You define "definitions" as a document. You need "definitions" sections, not "documents". |
Using
example script:
throws the error:
|
Try this:
|
It supposed to work. We will fix it, thank you. Atm, you can try the @thephez’s workaround. |
shumkov
changed the title
using definitions as document toplevel properties throws error
$ref doesn't work in document root schema
Sep 4, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Creating a document using JSON:
and setting definitions via
dpp.dataContract.validate(contract)
throwscontract.JSON()
as output by browser debug console (sincenode
version is broken):The text was updated successfully, but these errors were encountered: