Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 2.28 KB

File metadata and controls

40 lines (27 loc) · 2.28 KB

OpenRealEstate.NET Validation

This library allows us to validate the OpenRealEstate Listing instances. There's also a few flavours of validation: strict or just some basic validation.

Build status NuGet NuGet MyGet Pre Release


Rule sets

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);

Contributing

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.

Code of Conduct

Yep, we also have a code of conduct which applies to all repositories in the OpenRealEstate organisation.

Feedback

Yep, refer to the contributing page about how best to give feedback - either good or needs-improvement :)