metosin / malli

High-performance data-driven data specification library for Clojure/Script.
Eclipse Public License 2.0
1.44k stars 204 forks source link

Support masked Var References in JSON Schema / Swagger #988

Open ikitommi opened 6 months ago

ikitommi commented 6 months ago

Extracted @bsless https://github.com/metosin/malli/pull/985#issuecomment-1878713682 into separate issue.

so, you would not like to expose the namespaces?

Exactly. It's an implementation detail and can just add noise and confusion. Why would the consumer care that my schema is a com.foo.my-service.blash.schema/User? The benefit is it maps directly to the place where the schema is defined. Since it has pros and cons for each option, it makes sense to make it configurable and leave it up to users.

just for Vars or also for qualified keywords and symbols?

With qualified idents you can already give them whatever namespace prefix you like (and some argue you shouldn't use a ::foo anyway), so it's less of an issue.