Skip to content

Commit 6dccc19

Browse files
authored
Update _from_schema.py
Issue:Aliases for RFC 3339 formats are defined but not used #79
1 parent d6b9839 commit 6dccc19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hypothesis_jsonschema/_from_schema.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,8 @@ def relative_json_pointers() -> st.SearchStrategy[str]:
373373
STRING_FORMATS = {
374374
**{name: rfc3339(name) for name in RFC3339_FORMATS},
375375
"color": st.from_regex(_WEBCOLOR_REGEX) | st.sampled_from(_CSS21_COLOR_NAMES),
376+
"date": rfc3339("full-date"),
377+
"time": rfc3339("full-time"),
376378
"email": st.emails(),
377379
"idn-email": st.emails(),
378380
"hostname": prov.domains(),

0 commit comments

Comments
 (0)