# Spectral - Type-driven JSON encoding/decoding, validation, and OpenAPI generation

**URL:** <https://forum.elixirforum.com/t/spectral-type-driven-json-encoding-decoding-validation-and-openapi-generation/74902>\
**Category:** Announcing\
**Tags:** library, validation, json, types, serialization\
**Created:** [April 6, 2026, 10:40am UTC](https://forum.elixirforum.com/t/spectral-type-driven-json-encoding-decoding-validation-and-openapi-generation/74902 "2026-04-06T10:40:26Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mudasobwa](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/mudasobwa/32/41119_2.png) [@mudasobwa](https://forum.elixirforum.com/u/mudasobwa)\
**Post date:** [April 6, 2026, 2:05pm UTC](https://forum.elixirforum.com/t/spectral-type-driven-json-encoding-decoding-validation-and-openapi-generation/74902/3 "2026-04-06T14:05:30Z")

</div>

You might be interested in taking a look at [`estructura`](https://hexdocs.pm/estructura/Estructura.Nested.html#shape/1-example) allowing transparent nesting, coercion, validation, and (!) generation for `stream_data` property-based testing out of the box.

---

_[View the full topic](https://forum.elixirforum.com/t/spectral-type-driven-json-encoding-decoding-validation-and-openapi-generation/74902)._
