Class RestParamDefinition

Assembly: redb.Route.Http.dll

One parameter declared on a REST verb with Param(...): described in the OpenAPI document
always, enforced only when client request validation is on.

public sealed record RestParamDefinition : IEquatable<RestParamDefinition>

Inheritance

Object→RestParamDefinition

Implements

Properties

DataType

A value that does not convert to this type is answered with 400.

public RestParamDataType DataType { get; init; }

Description

OpenAPI description.

public string? Description { get; init; }

Name

Parameter name: the template segment, the query key or the header name.

public string Name { get; init; }

Required

A missing required parameter is answered with 400.

public bool Required { get; init; }

Type

Where the parameter comes from.

public RestParamType Type { get; init; }

Constructors

RestParamDefinition(string, RestParamType, bool, RestParamDataType, string?)

One parameter declared on a REST verb with Param(...): described in the OpenAPI document