Table of Contents

Property SkipSubjectValidation

Namespace
NATS.Client.Core
Assembly
NATS.Client.Core.dll

SkipSubjectValidation

Gets or sets a value indicating whether to skip subject validation. The default is true, meaning subject validation is disabled.

public bool SkipSubjectValidation { get; init; }

Property Value

bool

Remarks

When set to true (default), all subject validation is bypassed.

When set to false, subjects are validated to ensure they are not empty and don't contain whitespace characters (space, tab, CR, LF). This can help catch invalid subjects early but adds minor overhead.