This library allows us to validate the OpenRealEstate Listing
instances. There's also a few flavours of validation: strict or just some basic validation.
Rulesets are options that define how many of the Listing properties are checked.
RuleSet | Description |
---|---|
Default |
The default ruleset. This is the most basic form of validation and offers the smallest set of properties to check. |
Normal |
This is the ruleset which is recommended for most scenario's. Technically, it's default, Normal . |
Strict |
This final ruleset is the most strictest for validation checks. Tehnically, it's default, Normal, Strict . |
e.g.
// Validate a listing against the strictest validation rule.
var validator = new ResidentialListingValidator();
var listing = GetListing<ResidentialListing>();
var result = validator.Validate(listing,
ruleSet: ResidentialListingValidator.StrictRuleSet);
Discussions and pull requests are encouraged :) Please ask all general questions in this repo or pick a specialized repo for specific, targetted issues. We also have a contributing document which goes into detail about how to do this.
Yep, we also have a code of conduct which applies to all repositories in the OpenRealEstate organisation.
Yep, refer to the contributing page about how best to give feedback - either good or needs-improvement :)