# `OpenUI.Library.Compat`
[🔗](https://github.com/ideia4it/openui/blob/v0.1.1/lib/openui/library/compat.ex#L1)

Checks that a new version of a LibrarySpec keeps stored programs readable
(prompt.md, section 3.2): props of components, functions and actions are
only added at the end, never moved or removed, and a new required prop
carries a default.

# `check`

```elixir
@spec check(OpenUI.JSON.Object.t(), OpenUI.JSON.Object.t()) :: [String.t()]
```

Returns every rule the new spec breaks against the old one.

---

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