Last active
February 11, 2024 06:00
-
-
Save TwistingTwists/4551aac6f2ed2e24891652e5bcf0c175 to your computer and use it in GitHub Desktop.
instructor json schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%{ | |
"$defs" => %{ | |
"Politician.Office" => %{ | |
"description" => "", | |
"properties" => %{ | |
"from_date" => %{"format" => "date", "title" => "from_date", "type" => "string"}, | |
"office" => %{ | |
"enum" => ["president", "vice_president", "governor", "congress", "senate"], | |
"title" => "office", | |
"type" => "string" | |
}, | |
"to_date" => %{"format" => "date", "title" => "to_date", "type" => "string"} | |
}, | |
"required" => ["from_date", "office", "to_date"], | |
"title" => "Politician.Office", | |
"type" => "object" | |
} | |
}, | |
"description" => "A description of United States Politicians and the offices that they held,\n\n## Fields:\n- first_name: Their first name\n- last_name: Their last name\n- offices_held:\n - office: The branch and position in government they served in\n - from_date: When they entered office or null\n - until_date: The date they left office or null\n", | |
"properties" => %{ | |
"first_name" => %{"title" => "first_name", "type" => "string"}, | |
"last_name" => %{"title" => "last_name", "type" => "string"}, | |
"offices_held" => %{ | |
"items" => %{"$ref" => "#/$defs/Politician.Office"}, | |
"title" => "Politician.Office", | |
"type" => "array" | |
} | |
}, | |
"required" => ["first_name", "last_name", "offices_held"], | |
"title" => "Politician", | |
"type" => "object" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment