# `ApifyClient.Generator.Spec`
[🔗](https://github.com/social-growth-studio/apify-client-ex/blob/v1.0.0/dev/apify_client/generator/spec.ex#L1)

Location and sanity checks for the committed Apify OpenAPI description.

> #### Generation-time only {: .neutral}
>
> Used by the `apify.*` Mix tasks; lives in `dev/`.

# `default_url`

```elixir
@spec default_url() :: String.t()
```

Where `mix apify.spec.update` downloads the description from.

# `path`

```elixir
@spec path() :: String.t()
```

Path of the committed description, relative to the project root.

# `read_version`

```elixir
@spec read_version() :: String.t() | nil
```

The `info.version` of the committed description, or `nil` when there is none.

# `summary`

```elixir
@spec summary(map()) :: String.t()
```

One-line summary of a description: version, operation and schema counts.

# `validate!`

```elixir
@spec validate!(binary()) :: map()
```

Decodes a description and checks it looks like an OpenAPI document.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
