'AllowInSecureProtocol All Modules
There is a complex structure in my application. So it contains different modules. With Gradle 7.x, I need to make the necessary changes for the Insecure Protocol. But I have too many gradle files and too many maven { url 'http://' } available. Can I get all HTTP protocols accepted by editing from a specific location? Or should I make changes for each maven as follows. That means a lot of refactor :S `
{
url 'http://'
allowInsecureProtocol = true
}`
Solution 1:[1]
sadly, this is not supported by Gradle. So you will have to continue opting in on each repository. Read more here: https://github.com/gradle/gradle/issues/18006
Solution 2:[2]
Your code is working as expected. You have a PersonModel and your model never satisfies the [Required()] attributes.
A couple options:
Initialize your model to be valid.
@code { public PersonModel Person = new PersonModel() { CreatedBy="NonEmpty", UpdatedBy="NonEmpty" }Remove the constraints that your model is not satisfying.
public class PersonModel { public int ID { get; set; }
[Required(AllowEmptyStrings = false)]
public String Name { get; set; }
[Required(AllowEmptyStrings = false)]
public String Address { get; set; }
public String CreatedBy { get; set; }
public String UpdatedBy { get; set; }
}
Pick a possibly more appropriate Model for a "form with 2 fields"
public class PersonModel
{public int ID { get; set; } [Required(AllowEmptyStrings = false)] public String Name { get; set; } [Required(AllowEmptyStrings = false)] public String Address { get; set; } }
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | amarmishra |
| Solution 2 | Steve Wong |
