README.md

# StacValidator

A library for validating SpatioTemporal Asset Catalog (STAC) metadata.

## Installation

The package can be installed by adding `stac_validator` to your list of dependencies in `mix.exs`:
```elixir
def deps do
  [
    {:stac_validator, "~> 0.1.0"}
  ]
end
```

## Usage

```elixir
item = %{
  "type" => "Feature",
  "stac_version" => "1.0.0",
  "id" => "example-item",
  "geometry" => nil,
  "properties" => %{
    "datetime" => "2024-01-01T00:00:00Z"
  },
  "links" => [],
  "assets" => %{}
}

case StacValidator.validate_item(item) do
  {:ok, true} -> IO.puts("Valid STAC item!")
  {:error, reason} -> IO.puts("Invalid STAC item: #{reason}")
end
```

The documentation can be found at [https://hexdocs.pm/stac_validator](https://hexdocs.pm/stac_validator)