Skip to content

IncludePattern

class in JsonApiToolkit.Models.Validation

Compiled include pattern for efficient matching (supports wildcards).

public class IncludePattern

Constructors

IncludePattern(pattern: string)

Initializes a new include pattern.

Parameters - pattern

Properties

OriginalPattern : string

The original pattern string.

IsWildcard : bool

Whether the pattern contains wildcards.

Type : PatternType

Type of pattern (exact, wildcard, etc.).

CompiledRegex : Regex

Compiled regex for wildcard matching.

PatternParts : String[]

Pattern split into parts for exact matching.

Methods

Matches(include: string)

: bool

Checks if an include path matches this pattern.

Parameters - include