public static bool IsRequired(this JsonProperty jsonProperty) { if (!jsonProperty.HasAttribute <RequiredAttribute>()) { return(jsonProperty.get_Required() == 2); } return(true); }
internal static bool IsRequired(this JsonProperty jsonProperty) { if (jsonProperty.Required == Newtonsoft.Json.Required.AllowNull) { return(true); } if (jsonProperty.Required == Newtonsoft.Json.Required.Always) { return(true); } if (jsonProperty.HasAttribute <RequiredAttribute>()) { return(true); } return(false); }
internal static bool IsObsolete(this JsonProperty jsonProperty) { return(jsonProperty.HasAttribute <ObsoleteAttribute>()); }
public static bool IsRequired(this JsonProperty jsonProperty) { return(jsonProperty.HasAttribute <RequiredAttribute>() || jsonProperty.Required == Required.Always); }
public static bool IsRequired(this JsonProperty jsonProperty) { return jsonProperty.HasAttribute<RequiredAttribute>(); }
public static bool IsObsolete(this JsonProperty jsonProperty) { return jsonProperty.HasAttribute<ObsoleteAttribute>(); }
internal static bool IsRequired(this JsonProperty jsonProperty) { return(jsonProperty.Required == Newtonsoft.Json.Required.AllowNull || jsonProperty.Required == Newtonsoft.Json.Required.Always || jsonProperty.HasAttribute <RequiredAttribute>()); }
public static bool IsSwaggerExample(this JsonProperty jsonProperty) { return(jsonProperty.HasAttribute <SwaggerExample>()); }
public static bool IsRequiredConditionally(this JsonProperty jsonProperty) { return(jsonProperty.HasAttribute <RequiredConditionally>()); }