Skip to content

Unknown type public_key:ec_public_key/0 #27

@martinos

Description

@martinos

I am new to elixir and I try to use a typespec for one of my function.

  @spec fetch_key(String.t()) :: {:ok, X509.PublicKey.t()} | {:error, any()}
  def fetch_key(url) do
    CertValidation.fetch_valid_pub_key(url)
  end

When I run dialyzer I get the following error message:

:0: Unknown type public_key:ec_public_key/0
:0: Unknown type public_key:rsa_public_key/0

Do you have an idea of what might be the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions