Hi all, I got a bunch of pointer missing errors for my swagger :ref s when using malli - I think that's because these live in a registry - is there a way to pass them down to create-swagger-handler?
Ok I see the :registrykey on schemas - that seems to require the mc/schema wrapper
Ok I think I see what is going on - we register malli spec with a namespace:
(r/register! :survey/site-type [:enum ...])
and the ref is "#ref": "$ref":"#/definitions/survey~1site-type"
while the declaration is "definitions:{"survey/site-type": ...}
worth filing a bug (and fix with some hint at the location)?
hmmm ISTR that the actual key can still contain / , but it needs to be encoded as ~1 in the $ref
it's been quite some time since I touched this code
feel free to report the issue anyway so I'll remembed to investigate
will open an issue - is this malli or reitit ?
thank you for your answers folks
malli, I think
oh - I opened it here but I can do another one https://github.com/metosin/malli/issues/1172
Moved the issue to malli
Not sure, there's this comment:
;; '/' must be encoded as '~1' in JSON Schema -
{:$ref (apply str definitions-path (str/replace ref #"/" "~1"))}))
I guess the declaration should be updated to use ~1?
Yeah, that seems like a bug worth filing.