Table of Contents

Class KeyExtensions

Namespace
TypedRest.CodeGeneration
Assembly
TypedRest.CodeGeneration.dll

Helpers for transforming OpenAPI path/property keys before they become identifiers.

public static class KeyExtensions
Inheritance
object
KeyExtensions

Methods

Depluralize(string)

Returns the singular form of key using a small set of English depluralization rules. Falls back to key unchanged if no rule applies (e.g. "address" stays "address").

public static string Depluralize(this string key)

Parameters

key string

Returns

string