···5353 do: Validators.boolean_validate(Atex.AtURI.match?(value), "should be a valid at:// URI")
54545555 defp validate_option(value, {:format, "cid"}) do
5656- # TODO: is there a regex provided by the lexicon docs/somewhere?
5757- try do
5858- Multiformats.CID.decode(value)
5959- :ok
6060- rescue
5656+ case DASL.CID.new(value) do
5757+ {:ok, _} -> :ok
6158 _ -> {:error, "should be a valid CID", []}
6259 end
6360 end