Repository: oasis-open/cti-stix-validator

Issue:
Latitude is Misspelled Causing Validator to Assume it's a "custom property"
https://github.com/oasis-open/cti-stix-validator/blob/2aefc8ca80bb94022e777dba185503825e46b05a/stix2validator/v21/enums.py#L657

Discussion:

Patch:
diff --git a/stix2validator/v21/enums.py b/stix2validator/v21/enums.py
index e03019a..add4d79 100644
--- a/stix2validator/v21/enums.py
+++ b/stix2validator/v21/enums.py
@@ -654,7 +654,7 @@ PROPERTIES = {
         'object_marking_refs',
         'granular_markings',
         'description',
-        'latittude',
+        'latitude',
         'longitude',
         'precision',
         'region',


Test patch:
diff --git a/stix2validator/test/v21/location_tests.py b/stix2validator/test/v21/location_tests.py
index 737e3e7..98fc21e 100644
--- a/stix2validator/test/v21/location_tests.py
+++ b/stix2validator/test/v21/location_tests.py
@@ -27,6 +27,14 @@ class LocationTestCases(ValidatorTest):
         results = validate_string(VALID_LOCATION, self.options)
         self.assertTrue(results.is_valid)
 
+    def test_location_lat_long(self):
+        location = copy.deepcopy(self.valid_location)
+        location['latitude'] = 48.8566
+        location['longitude'] = 2.3522
+        self.assertTrueWithOptions(location)
+
+        self.check_ignore(location, 'region')
+
     def test_vocab_region(self):
         location = copy.deepcopy(self.valid_location)
         location['region'] = 'global'