I ran into a similar issue. Just make sure serverless:
is set to true and the schema will be correct:
sink:
- opensearch:
hosts:https://a123.us-east-1.aoss.amazonaws.com
aws:
sts_role_arn: arn:aws:iam::123:role
region: us-west-1
serverless: true