{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/contact":{"post":{"summary":"Create Contact","operationId":"create_contact_contact_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Contact":{"properties":{"email":{"type":"string","format":"email","title":"Email","description":"The email address supplied by the website visitor."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"The name of the website visitor."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","description":"A message from the website visitor."}},"type":"object","required":["email"],"title":"Contact"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}