Added __get_pydantic_json_schema__ method with format='tel' - #106
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #106 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 9 9
Lines 637 642 +5
Branches 158 159 +1
=========================================
+ Hits 637 642 +5
☔ View full report in Codecov by Sentry. |
Kludex
left a comment
There was a problem hiding this comment.
Where did you get this format from?
I was playing with json-editor/json-editor and they use this format. I wasn't sure about opening this pull request so before I checked JSON Schema but couldn't find anything and then I checked Alpaca Forms which uses Edit: After you asked I checked JSON Schema again and found this page: A JSON Media Type for Describing the Structure and Meaning of JSON Documents. In the What do you think @Kludex |
|
The document you are using to "prove" it should be "phone" is expired by 13 years already... Do you have a better source? |
I believe not, I'll do more digging. Until then, I'm converting this one to draft. |
|
@Kludex 👋 Hope you're doing well. I was searching for a better source to implement a valid schema that includes
You're right about that. But thanks to you I saw this line in the
Hance What do you think we should do? Remove |
Link? |
This line is taken from here: JSON Schema: interactive and non interactive validation I believe you were refering this when you said:
|
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
No description provided.