What would it take for the SDK to accept JSON sche...
# meltano-plugin-development
r
What would it take for the SDK to accept JSON schema with $refs but without the root object? It would make some things easier: • generating config schema from pydantic or msgspec • generating catalog from open API or complex JSON Schema files it would need to accept a
tuple[dict, str]
with a reference where it now accepts
dict
r
Ah, that just leaves to me to point to the object that I want to pass
I don't suppose that would work with openapi?
e
The example I shared is a tap that uses an OpenAPI spec
r
thanks, I'll take a closer look
e
I do have a few common patterns for OpenAPI sources, but I've yet to come up with a design that makes sense to upstream into the SDK
r
It would be great if they could be written down for the time being. Perhaps a github issue would do
or a blog post
r
this will fail when the json schema has cyclic references. normally such fields cold be de-selected, but if the refs are inlined, it will either raise error or crash with infinite recursion