Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- The README's custom codec example used the pre-0.12.0 callback signatures (`encode/7`, `decode/7`, `schema/6` with a separate `params` argument). Copying it produced callbacks that did not match the behaviour. The example and the `type_parameters` section now show the current `encode/6`, `decode/6`, and `schema/5`, and read `type_parameters` via `:spectra_type.parameters/1`.

### Added
- A "Spectral and Ecto" README section on storing Spectral-typed values in `jsonb` columns, including two ways to handle a column whose type varies per row: a self-describing tagged union, and a type reference taken from a sibling column. Packaging the `Ecto.ParameterizedType` wrapper itself is left to a separate `spectral_ecto` library, which can depend on Ecto and test against a real database.
- A "Spectral and Ecto" README section on storing Spectral-typed values in `jsonb` columns, including two ways to handle a column whose type varies per row: a self-describing tagged union, and a type reference taken from a sibling column. Packaging the `Ecto.ParameterizedType` wrapper itself is left to a separate `ecto_spectral` library, which can depend on Ecto and test against a real database.

## [0.13.0] - 2026-05-07

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,8 @@ your types, use `:pre_encoded` and `:pre_decoded`:
```

Packaging that into an `Ecto.ParameterizedType`, so a schema can declare
`field :settings, SpectralEcto.JSONB, module: MyApp.Settings, type: :t`, is the job of the
separate `spectral_ecto` library. It lives there because it needs a real Ecto dependency and
`field :settings, EctoSpectral.JSONB, module: MyApp.Settings, type: :t`, is the job of the
separate `ecto_spectral` library. It lives there because it needs a real Ecto dependency and
a real Postgres instance to test against. Spectral itself has no Ecto dependency and needs
none.

Expand Down
Loading