Henry Andrews
Henry Andrews
https://github.com/json-schema-org/json-schema-spec/issues/322 is the JSON Schema issue closest to this. It has not really found a champion, and it does open up considerable amounts of complexity. But we haven't rejected it...
Do `$dynamicAnchor` and `$dynamicRef` (available in OAS 3.1) help here? They allow you to reference something that is determined at runtime. Sadly they're a bit confusing- json-schema-org/json-schema-spec#1140 has a proposal...
I am using ReDoc for this right now, actually (not public or I'd link it). But I got it from the demo code, specifically: ```YAML tags: - name: pet description:...
@hheavener-kyd I'm afraid I don't remember at this point. I think I just found them by poking around? I haven't looked at this in a year.
@Julian looking through this and the related #98 it seems that the problem is uncertainty over how to set the initial base URI in the absence of a root `$id`...
@Julian > "if users forget to specify an $id and you loaded the schema from somewhere, assume one using the URI you used to fetch the document". Yeah that's basically...
@joecabezas I did add https://github.com/json-schema-org/json-schema-spec/pull/686 for the next draft which should nudge people a bit more in the right direction. The problem is that there are endless ways to store...
@mellertson OpenAPI (formerly known as Swagger but seriously they changed it in 2015 it's been four years already) uses a subset of `$ref` functionality, as they do not support `$id`....
RefResolver (or its successor) should allow customizing deserialization, not only scheme / retrieval
You can see one approach to this problem in JavaScript in the [AutoExtensionDereferencer](https://github.com/cloudflare/json-schema-tools/tree/master/workspaces/json-schema-transform) function of [JSON Schema Tools](https://github.com/cloudflare/json-schema-tools/tree/master/workspaces/json-schema-transform). Although the "dereferencer" part is not necessarily relevant here, just the automatic...
RefResolver (or its successor) should allow customizing deserialization, not only scheme / retrieval
@martingkelly it really does not fit in the JSON Schema spec. For one thing, it's much better to allow implementations flexibility in how they manage this. Some implementations will be...