lambdaisland / uri

A pure Clojure/ClojureScript URI library
Mozilla Public License 2.0
243 stars 21 forks source link

Is there a way to have a predicate for validity? #43

Closed jerger closed 9 months ago

jerger commented 1 year ago

Hi,

I like the idea of independent implementation of uri a lot.

Eg.

(uri/uri "https://www.test.com:abcd/test.heml")
(uri/uri "a b")

I would expect to be invalid regarding to the RFC. Is there a way to validate such inputs?

plexus commented 9 months ago

No, this library does not do validation. Garbage-in, garbage-out.