-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
No description provided.