Jeff Laughlin
Jeff Laughlin
This is a valid bug; it violates the spec WRT internal links. Internal links are not necessarily JSON pointers. $ node -e 'require("json-schema-ref-parser").dereference({"$ref": "#bar", "definitions": {"bar": {"$id": "#bar"}}}).then(s=>console.log(s))' (node:17237) UnhandledPromiseRejectionWarning:...
as a stopgap the program could simply ignore internal refs. Not ideal but better than crashing.
Example dereferencing local refs ``` _walkSchema(schema, accum) { return _.reduce(Object.entries(schema), (a, [k, v])=>{ if (k === '$id') a.ids[v] = a.parent; k === '$ref' && a.refs.push(a.parent); if (v && typeof v...
this seems to duplicate https://github.com/BigstickCarpet/json-schema-ref-parser/issues/17
works on python 3.8 at least 😅
> Why are the hypothesis tests removed? oops
> Why are the hypothesis tests removed? honestly its because my internet went down last night and I couldn't install the hypothesis package at the time
one caveat I might mention about this implementation is that EVERY async task will run in the same context. normally child tasks would inherit a COPY of the parent task's...
I opened https://bugs.python.org/issue40320 to officially request the ability to pass context to task
> I just hit [a similar problem regarding contextvars with async-yield fixtures](https://aio-libs.discourse.group/t/contextvars-with-pytest-async-generator-fixture/92). > Could your PR also resolve this case as well? It should. I use them in my app...