Description[Extensions] Add a SimpleFeature::Validate function
Currently, most feature validation happens in Parse(). Add a Validate()
function that can be called after Parse() so that if a feature is
generated, validation can still be performed (independent of whether or
not the feature is created from a JSON value). In the future, these
validations should be performed as part of the compile process, but this
is a starting point.
Also update tests that parsed features and used JSONFeatureProvider only
to test this validation. This way, once we move away from
JSON-based features and JSONFeatureProvider, these tests are still
active.
BUG=280286
Committed: https://crrev.com/23f765ccc6be80523d9d09358e249fc749cf5331
Cr-Commit-Position: refs/heads/master@{#406076}
Patch Set 1 #Patch Set 2 : Tests #
Total comments: 9
Patch Set 3 : Istiaque's #Messages
Total messages: 20 (12 generated)
|