]> 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>
Tue, 5 Aug 2025 09:23:53 +0000 (11:23 +0200)
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 fccd20f7a4e8b04c59d20ed6cd298fea5fe3af96..85ae6a36507ab8e67f283a06d3857af3bebdb7a1 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 4855fdcc7357af8a0a1cc6c6169541e52d827791..dbc63071f21b9227c21f2374d6dd93bcd161299d 100644 (file)
@@ -103,7 +103,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 6b693e6be475c4dccdca895ab3c640bbcc75153f..c40e22136f2ffc1638e4146f3a3cd458a69a205d 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.