# Support generate JSON Schema with predicate format?

**URL:** <https://discourse.dry-rb.org/t/support-generate-json-schema-with-predicate-format/1627>\
**Category:** Ideas\
**Created:** [March 22, 2023, 6:23am UTC](https://discourse.dry-rb.org/t/support-generate-json-schema-with-predicate-format/1627 "2023-03-22T06:23:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HNKhoi2410](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/hnkhoi2410/32/861_2.png) [@HNKhoi2410](https://discourse.dry-rb.org/u/HNKhoi2410)\
**Post date:** [March 22, 2023, 6:23am UTC](https://discourse.dry-rb.org/t/support-generate-json-schema-with-predicate-format/1627/1 "2023-03-22T06:23:40Z")

</div>

Hi team,  
The extension `json_schema` in Dry-schema only support to transform [these predicates](https://github.com/dry-rb/dry-schema/blob/main/lib/dry/schema/extensions/json_schema/schema_compiler.rb#L17). It is missing predicate `format?`

I saw the gem already has defined regex for `uuid` so I think it also makes sense when supporting this `format?`

What do you think?

Thanks!

---

<div class="post-metadata">

**Author:** ![solnic](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/solnic/32/779_2.png) [@solnic](https://discourse.dry-rb.org/u/solnic)\
**Post date:** [March 27, 2023, 7:43am UTC](https://discourse.dry-rb.org/t/support-generate-json-schema-with-predicate-format/1627/2 "2023-03-27T07:43:24Z")

</div>

Yes this does make sense

---

<div class="post-metadata">

**Author:** ![silvabox](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/silvabox/32/948_2.png) [@silvabox](https://discourse.dry-rb.org/u/silvabox)\
**Post date:** [February 6, 2024, 3:36pm UTC](https://discourse.dry-rb.org/t/support-generate-json-schema-with-predicate-format/1627/3 "2024-02-06T15:36:18Z")

</div>

Is it acceptable to create a PR to address this?
