Share via


OpenApiParameterRules Class

Definition

The validation rules for OpenApiParameter.

[Microsoft.OpenApi.OpenApiRule]
public static class OpenApiParameterRules
[<Microsoft.OpenApi.OpenApiRule>]
type OpenApiParameterRules = class
Public Class OpenApiParameterRules
Inheritance
OpenApiParameterRules
Attributes

Properties

Name Description
ParameterRequiredFields

Validate the field is required.

PathParameterShouldBeInThePath

Validate that a path parameter should always appear in the path

RequiredMustBeTrueWhenInIsPath

Validate the "required" field is true when "in" is path.

Applies to