BUG: "required" list in structuredDataSchema objec...
# support
t
Hi, if you create an object within the analysis extraction object with some required properties in the Dashboard, and then remove them or perhaps renaming them without unselecting them as required, they stay in the required field even though they aren't specifically requested properties, seems to confuse the analyzer. Example assistant:
414e6b0d-9a7b-47ff-93a2-87970fa74045
You can see
analysisPlan.structuredDataSchema.properties.owner_personal_info.required
has entries that no long exist in
analysisPlan.structuredDataSchema.properties.owner_personal_info.properties
Could you please fix this and edit my assistant in the DB to remove the no-longer-existent properties from the required list in each object? Thank you!
c
Can you provide the properties which needs to be removed from your structure part?
t
owner_personal_info.required
- email_address, owner_address_zip, owner_address_city, owner_address_state, owner_address_street, name, state, industry, zip_code, entity_type, is_franchise, is_non_profit, w2_employee_count
owner_financial_info.required
- most_important, name, phone
business_general_info.required
- business_name, amount, purpose
business_financial_info.required
- entity_type, start_month, is_franchise, is_nonprofit, profit_year, revenue_month, has_bankruptcy, does_invoice_customers, does_accept_credit_cards
business_revenue_transactions.required
- [profit_last_year, does_invoice_customers, does_accept_credit_cards]
c
Hey toadilywasted, sorry we cannot make the update on your behalf instead you have to make the update assistant request using this link
example
curl -X PATCH '' \\ \-H 'Authorization: Bearer $VAPI_PRIVATE_KEY' \\ \-H 'Content-Type: application/json' \\ \-d '{ "analysisPlan": { "structuredDataPlan": { "schema": { "type": "object", "required": \[ "owner_personal_info", "owner_financial_info", "business_general_info", "business_financial_info", "business_revenue_transactions" \], "properties": { "owner_personal_info": { "type": "object", "required": \[ "dob", "ssn", "owner_name", "address_zip", "address_city", "phone_number", "address_state", "address_street" \] }, "owner_financial_info": { "type": "object", "required": \[ "credit_score", "funding_priority", "ownership_percentage" \] }, "business_general_info": { "type": "object", "required": \[ "name", "address_zip", "address_city", "address_state", "address_street", "dba" \] }, "business_financial_info": { "type": "object", "required": \[ "fein", "website", "start_year", "industry_type", "funding_purpose", "funding_amount_requested" \] } } } } } }'
Do let me know if you require further help!!
t
Thank you! Could you put that into code tags please so I can copy with correct formatting?
s
@toadilywasted done
Copy code
json
{
    "analysisPlan": {
        "structuredDataPlan": {
            "schema": {
                "type": "object",
                "required": [
                    "owner_personal_info",
                    "owner_financial_info",
                    "business_general_info",
                    "business_financial_info",
                    "business_revenue_transactions"
                ],
                "properties": {
                    "owner_personal_info": {
                        "type": "object",
                        "required": [
                            "dob",
                            "ssn",
                            "owner_name",
                            "address_zip",
                            "address_city",
                            "phone_number",
                            "address_state",
                            "address_street"
                        ]
                    },
                    "owner_financial_info": {
                        "type": "object",
                        "required": [
                            "credit_score",
                            "funding_priority",
                            "ownership_percentage"
                        ]
                    },
                    "business_general_info": {
                        "type": "object",
                        "required": [
                            "name",
                            "address_zip",
                            "address_city",
                            "address_state",
                            "address_street",
                            "dba"
                        ]
                    },
                    "business_financial_info": {
                        "type": "object",
                        "required": [
                            "fein",
                            "website",
                            "start_year",
                            "industry_type",
                            "funding_purpose",
                            "funding_amount_requested"
                        ]
                    }
                }
            }
        }
    }
}