<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atr0phy</author_name>
  <author_url>https://blog.hatena.ne.jp/atr0phy/</author_url>
  <blog_title>HackToTech</blog_title>
  <blog_url>https://www.hacktotech.net/</blog_url>
  <categories>
    <anon>kotlin</anon>
    <anon>validation</anon>
  </categories>
  <description>isValid 内でValidationMessagseのキー指定して切り替えって出来るんだっけ？ってなったので、個人的なメモ書き ドキュメントを読んでいたら出来そうだったので試した あんまり使う機会はなさそうではある(基本的にはConstraintsは分けるし、相関チェックみたいなパターンぐらいの認識) @Target(AnnotationTarget.CLASS) @Retention(AnnotationRetention.RUNTIME) @Constraint(validatedBy = [CustomConstraints.CustomConstraintValidator::cl…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.hacktotech.net%2Fentry%2Fkotlin-constraint-validator-custom-error-message&quot; title=&quot;ConstraintValidatorのisValidでエラーメッセージを変更する - HackToTech&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.user.blog.st-hatena.com/default_entry_og_image/155647406/1577715909980632</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-04-16 18:08:53</published>
  <title>ConstraintValidatorのisValidでエラーメッセージを変更する</title>
  <type>rich</type>
  <url>https://www.hacktotech.net/entry/kotlin-constraint-validator-custom-error-message</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
