-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix a few bugs with top level schema definitions #74
base: main
Are you sure you want to change the base?
Conversation
|
✅ Deploy Preview for codemirror-json-schema ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
143547b
to
22c47a6
Compare
@@ -291,6 +292,57 @@ describe("jsonCompletion", () => { | |||
}, | |||
]); | |||
}); | |||
it("should autocomplete for array of objects with filter", async () => { | |||
await expectCompletion('{ "arrayOfObjects": [ { "f|" } ] }', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this works for me locally
]); | ||
}); | ||
it("should autocomplete for a schema with top level $ref", async () => { | ||
await expectCompletion( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
working on this one ⏱️
{ schema: testSchema3 } | ||
); | ||
}); | ||
it("should autocomplete for a schema with top level complex type", async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
working on this one ⏱️
@imolorhe from what i can tell it is because our getPointer method skips the object root itself |
@acao I was able to get it working without touching getPointer. Just touching the completion logic, and all tests are passing! |
Since I'm on it, want to tackle a few other test cases before creating a PR |
allOf
bug support complex base types #73 and Expected type not working #69