]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
python: datamodel: typo fixes
authorAleš Mrázek <ales.mrazek@nic.cz>
Mon, 2 Jun 2025 09:00:25 +0000 (11:00 +0200)
committerAleš Mrázek <ales.mrazek@nic.cz>
Fri, 31 Oct 2025 14:11:38 +0000 (15:11 +0100)
doc/_static/config.schema.json
python/knot_resolver/datamodel/cache_schema.py
python/knot_resolver/datamodel/config_schema.py
python/knot_resolver/datamodel/forward_schema.py
python/knot_resolver/datamodel/globals.py
python/knot_resolver/datamodel/local_data_schema.py
python/knot_resolver/datamodel/options_schema.py

index 7b68805499699a7411fd369fd22dcf8931a73386..eebece6754b022b091212b41daf584c4889cebea 100644 (file)
@@ -84,7 +84,7 @@
                         "strict",
                         "permissive"
                     ],
-                    "description": "Glue records scrictness checking level.",
+                    "description": "Glue records strictness checking level.",
                     "default": "normal"
                 },
                 "minimize": {
                 },
                 "nodata": {
                     "type": "boolean",
-                    "description": "Use NODATA synthesis. NODATA will be synthesised for matching name, but mismatching type(e.g. AAAA query when only A exists).",
+                    "description": "Use NODATA synthesis. NODATA will be synthesized for matching name, but mismatching type(e.g. AAAA query when only A exists).",
                     "default": true
                 },
                 "addresses": {
                                     "boolean",
                                     "null"
                                 ],
-                                "description": "Optional, use NODATA synthesis. NODATA will be synthesised for matching name, but mismatching type(e.g. AAAA query when only A exists).",
+                                "description": "Optional, use NODATA synthesis. NODATA will be synthesized for matching name, but mismatching type(e.g. AAAA query when only A exists).",
                                 "default": null
                             }
                         }
                         "rw-reads": {
                             "type": "integer",
                             "minimum": 0,
-                            "description": "Maximum number of readed records per read-write transaction (0 = unlimited).",
+                            "description": "Maximum number of read records per read-write transaction (0 = unlimited).",
                             "default": 200
                         },
                         "rw-duration": {
             }
         },
         "monitoring": {
-            "description": "Metrics exposisition configuration (Prometheus, Graphite)",
+            "description": "Metrics exposition configuration (Prometheus, Graphite)",
             "type": "object",
             "properties": {
                 "metrics": {
index c616a3d78ea0bd56fbb1475d468731c4f505bd6c..630728207931c3bcad1c2255e2ae51c445045f97 100644 (file)
@@ -68,7 +68,7 @@ class GarbageCollectorSchema(ConfigSchema):
     release: Percent of used cache to be freed by the garbage collector.
     temp_keys_space: Maximum amount of temporary memory for copied keys (0 = unlimited).
     rw_deletes: Maximum number of deleted records per read-write transaction (0 = unlimited).
-    rw_reads: Maximum number of readed records per read-write transaction (0 = unlimited).
+    rw_reads: Maximum number of read records per read-write transaction (0 = unlimited).
     rw_duration: Maximum duration of read-write transaction (0 = unlimited).
     rw_delay: Wait time between two read-write transactions.
     dry_run: Run the garbage collector in dry-run mode.
index b04173a13e16bedefa8295f8ba70e0cd9d411c1d..5601d8a0e74adc7a7949954fea5f693dd067984f 100644 (file)
@@ -104,7 +104,7 @@ class KresConfig(ConfigSchema):
         dnssec: DNSSEC configuration.
         dns64: DNS64 (RFC 6147) configuration.
         logging: Logging and debugging configuration.
-        monitoring: Metrics exposisition configuration (Prometheus, Graphite)
+        monitoring: Metrics exposition configuration (Prometheus, Graphite)
         lua: Custom Lua configuration.
         rate_limiting: Configuration of rate limiting.
         defer: Configuration of request prioritization (defer).
index 80b94f3f01df45c446876bef3f9d79bb8d0dfbf5..1f6821c2d19ef29e01ff5ba9576329208811e7e0 100644 (file)
@@ -24,7 +24,7 @@ class ForwardServerSchema(ConfigSchema):
 
     def _validate(self) -> None:
         if self.pin_sha256 and (self.hostname or self.ca_file):
-            raise ValueError("'pin-sha256' cannot be configurad together with 'hostname' or 'ca-file'")
+            raise ValueError("'pin-sha256' cannot be configured together with 'hostname' or 'ca-file'")
 
 
 class ForwardOptionsSchema(ConfigSchema):
index 044cf475b1881c5ceab829f6fe49222832233fd7..5482b938032849d0d2dc66bbedf59b1d49ff573e 100644 (file)
@@ -7,7 +7,7 @@ Commentary from @vsraier:
 =========================
 
 While this is not ideal, it is the best we can do at the moment. When I created this module,
-the datamodel was dependent on the global state implicitely. The validation procedures just read
+the datamodel was dependent on the global state implicitly. The validation procedures just read
 the current working directory. This module is the first step in removing the global dependency.
 
 At some point in the future, it might be interesting to add something like a "validation context"
index 58a88fa8f450d9190f810a3fce43f2c3b3f742ad..5eb4bcdef697b1c7c5ca541f53cb4f135375aa62 100644 (file)
@@ -25,7 +25,7 @@ class RuleSchema(ConfigSchema):
     records: Direct addition of records in DNS zone file format.
     tags: Tags to link with other policy rules.
     ttl: Optional, TTL value used for these answers.
-    nodata: Optional, use NODATA synthesis. NODATA will be synthesised for matching name, but mismatching type(e.g. AAAA query when only A exists).
+    nodata: Optional, use NODATA synthesis. NODATA will be synthesized for matching name, but mismatching type(e.g. AAAA query when only A exists).
     """
 
     name: Optional[ListOrItem[DomainName]] = None
@@ -99,7 +99,7 @@ class LocalDataSchema(ConfigSchema):
 
     ---
     ttl: Default TTL value used for added local data/records.
-    nodata: Use NODATA synthesis. NODATA will be synthesised for matching name, but mismatching type(e.g. AAAA query when only A exists).
+    nodata: Use NODATA synthesis. NODATA will be synthesized for matching name, but mismatching type(e.g. AAAA query when only A exists).
     addresses: Direct addition of hostname and IP addresses pairs.
     addresses_files: Direct addition of hostname and IP addresses pairs from files in '/etc/hosts' like format.
     records: Direct addition of records in DNS zone file format.
index a9936eb4cdbf1926a1173c01834cfe26ceccb300..6370a6e2f356867b68d1c868e88d3eb55cb83204 100644 (file)
@@ -10,7 +10,7 @@ class OptionsSchema(ConfigSchema):
     Fine-tuning global parameters of DNS resolver operation.
 
     ---
-    glue_checking: Glue records scrictness checking level.
+    glue_checking: Glue records strictness checking level.
     minimize: Send minimum amount of information in recursive queries to enhance privacy.
     query_loopback: Permits queries to loopback addresses.
     reorder_rrset: Controls whether resource records within a RRSet are reordered each time it is served from the cache.