Table of Contents

Class ElementPattern

Namespace
TypedRest.CodeGeneration.Patterns.Generic
Assembly
TypedRest.CodeGeneration.dll

A pattern that generates ElementEndpoints.

public class ElementPattern : PatternBase, IPattern
Inheritance
object
ElementPattern
Implements
Inherited Members

Properties

RequiredOperations

A list of OperationTypes the root of the path tree must support in order for this pattern to be applicable.

protected override OperationType[] RequiredOperations { get; }

Property Value

OperationType[]

Methods

BuildEndpoint(OpenApiPathItem)

Builds the endpoint using information from the item. null if the pattern does not match.

protected override IEndpoint? BuildEndpoint(OpenApiPathItem item)

Parameters

item OpenApiPathItem

Returns

IEndpoint