Class BodyValidationRequestPolicy
Validate the payload body of the incoming API requests on a specific route.
Inherited Members
Namespace: Oci.ApigatewayService.Models
Assembly: OCI.DotNetSDK.Apigateway.dll
Syntax
public class BodyValidationRequestPolicy
Properties
Content
Declaration
[Required(ErrorMessage = "Content is required.")]
[JsonProperty(PropertyName = "content")]
public Dictionary<string, ContentValidation> Content { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, ContentValidation> | The content of the request body. The key is a media type range
subset restricted to the following schema
|
Remarks
Required
Required
Declaration
[JsonProperty(PropertyName = "required")]
public bool? Required { get; set; }
Property Value
Type | Description |
---|---|
bool? | Determines if the request body is required in the request. |
ValidationMode
Declaration
[JsonProperty(PropertyName = "validationMode")]
[JsonConverter(typeof(StringEnumConverter))]
public BodyValidationRequestPolicy.ValidationModeEnum? ValidationMode { get; set; }
Property Value
Type | Description |
---|---|
BodyValidationRequestPolicy.ValidationModeEnum? | Validation behavior mode.
|