private static OperationParameter Map(Property property) { if (property == null) { return(null); } if (property.Type == Type.Unknown) { throw new ArgumentException($"Unknown property type for {property.ToJson()}"); } return(new OperationParameter { Name = property.Name, Type = property.Type, Format = property.Format, Ref = property.Ref, Items = Map(property.Items), EnumTypeName = property.EnumTypeName, Enum = property.Enum, }); }
private static bool IsMixedKebabCamelCase(Property property) { return(property.Name.Contains('-')); }