# Embedding the custom body model validation as a given Codec?

**URL:** <https://softwaremill.community/t/embedding-the-custom-body-model-validation-as-a-given-codec/433>\
**Category:** tapir\
**Created:** [August 12, 2024, 8:53pm UTC](https://softwaremill.community/t/embedding-the-custom-body-model-validation-as-a-given-codec/433 "2024-08-12T20:53:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![coryfklein](https://dub1.discourse-cdn.com/flex005/user_avatar/softwaremill.community/coryfklein/32/290_2.png) [@coryfklein](https://softwaremill.community/u/coryfklein)\
**Post date:** [August 12, 2024, 11:09pm UTC](https://softwaremill.community/t/embedding-the-custom-body-model-validation-as-a-given-codec/433/2 "2024-08-12T23:09:30Z")

</div>

Ah, I did discover [you can inline validations like this](https://softwaremill.community/t/use-validate-before-decoding-phase/51/3)!

Am still curious how you would define a custom validator for a class like this though.

---

_[View the full topic](https://softwaremill.community/t/embedding-the-custom-body-model-validation-as-a-given-codec/433)._
