examples/v1/synthetics/UpdateAPITest.rb in datadog_api_client-2.22.0 vs examples/v1/synthetics/UpdateAPITest.rb in datadog_api_client-2.24.0
- old
+ new
@@ -27,9 +27,17 @@
operator: "isNot",
target_value: "0",
}),
type: DatadogAPIClient::V1::SyntheticsAssertionType::BODY,
}),
+ DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaTarget.new({
+ operator: DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaOperator::VALIDATES_JSON_SCHEMA,
+ target: DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaTargetTarget.new({
+ meta_schema: DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaMetaSchema::DRAFT_07,
+ json_schema: '{"type": "object", "properties":{"slideshow":{"type":"object"}}}',
+ }),
+ type: DatadogAPIClient::V1::SyntheticsAssertionType::BODY,
+ }),
],
config_variables: [
DatadogAPIClient::V1::SyntheticsConfigVariable.new({
example: "content-type",
name: "PROPERTY",