{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/rule_post", "title": "rule_post", "oneOf": [ { "$ref": "#/components/schemas/http_rule_post" }, { "$ref": "#/components/schemas/ifttt_rule_post" }, { "$ref": "#/components/schemas/zapier_rule_post" }, { "$ref": "#/components/schemas/cloudflare_worker_rule_post" }, { "$ref": "#/components/schemas/azure_function_rule_post" }, { "$ref": "#/components/schemas/google_cloud_function_rule_post" }, { "$ref": "#/components/schemas/aws_lambda_rule_post" }, { "$ref": "#/components/schemas/aws_kinesis_rule_post" }, { "$ref": "#/components/schemas/aws_sqs_rule_post" }, { "$ref": "#/components/schemas/amqp_rule_post" }, { "$ref": "#/components/schemas/amqp_external_rule_post" }, { "$ref": "#/components/schemas/kafka_rule_post" }, { "$ref": "#/components/schemas/pulsar_rule_post" }, { "$ref": "#/components/schemas/ingress_postgres_outbox_rule_post" } ], "discriminator": { "propertyName": "ruleType", "mapping": { "http": "#/components/schemas/http_rule_post", "http/ifttt": "#/components/schemas/ifttt_rule_post", "http/zapier": "#/components/schemas/zapier_rule_post", "http/cloudflare-worker": "#/components/schemas/cloudflare_worker_rule_post", "http/azure-function": "#/components/schemas/azure_function_rule_post", "http/google-cloud-function": "#/components/schemas/google_cloud_function_rule_post", "aws/lambda": "#/components/schemas/aws_lambda_rule_post", "aws/kinesis": "#/components/schemas/aws_kinesis_rule_post", "aws/sqs": "#/components/schemas/aws_sqs_rule_post", "amqp": "#/components/schemas/amqp_rule_post", "amqp/external": "#/components/schemas/amqp_external_rule_post", "kafka": "#/components/schemas/kafka_rule_post", "pulsar": "#/components/schemas/pulsar_rule_post", "ingress-postgres-outbox": "#/components/schemas/ingress_postgres_outbox_rule_post" } } }