public static string PropertyDescription(ResourceProperty resourceProperty)
 => UniqueIdSpecification.IsUniqueId(resourceProperty.JsonPropertyName)
         ? $"A unique alphanumeric code assigned to a {UniqueIdSpecification.RemoveUniqueIdSuffix(resourceProperty.JsonPropertyName.ScrubForOpenApi()).ToLower()}."
         : resourceProperty.Description
 .ScrubForOpenApi();
Example #2
0
 /// <summary>
 /// Removes the trailing uniquid or usi from the property name.
 /// </summary>
 /// <param name="property"></param>
 /// <returns></returns>
 public static string RemoveUniqueIdOrUsiFromPropertyName(this ResourceProperty property)
 {
     return(UniqueIdSpecification.IsUniqueId(property.PropertyName)
         ? UniqueIdSpecification.RemoveUniqueIdSuffix(property.PropertyName)
         : UniqueIdSpecification.RemoveUsiSuffix(property.PropertyName));
 }