コード例 #1
0
        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,
            });
        }
コード例 #2
0
 private static bool IsMixedKebabCamelCase(Property property)
 {
     return(property.Name.Contains('-'));
 }