Create Assistants Api Broken since 2/16/2024

While creating a new assistant with function type, I started getting this error since last night…no changes, everything was working correctly prior to that…I also tried the below with a simple example and it is now throwing an error

{
“instructions”: “You are an ecommerce assistant.”,
“name”: “Math Tutor”,
“tools”: [
{
“type”: “function”,
“function”: {
“name”: “getCustomer”,
“description”: “Get End customer details”,
“parameters”: {
“type”: “object”,
“properties”: {
“customerId”: {
“type”: “number”,
“description”: “the end customer Id in the platform.”
}
}
},
“required”: [ “customerId” ]
}
}
],
“model”: “gpt-4”
}

Response

{
“error”: {
“message”: “5 validation errors for Request\nbody → tools → 0 → type\n unexpected value; permitted: <ToolTypeParam.CODE_INTERPRETER: ‘code_interpreter’> (type=value_error.const; given=function; permitted=(<ToolTypeParam.CODE_INTERPRETER: ‘code_interpreter’>,))\nbody → tools → 0 → function\n extra fields not permitted (type=value_error.extra)\nbody → tools → 0 → type\n unexpected value; permitted: <ToolTypeParam.RETRIEVAL: ‘retrieval’> (type=value_error.const; given=function; permitted=(<ToolTypeParam.RETRIEVAL: ‘retrieval’>,))

The required field was in the wrong location, previously there was no validation, it seems like validation was recently added which caused this api to break…please close this post since moving the required field to the right location fixed the issue