From: Aleš Mrázek Date: Mon, 2 Jun 2025 09:00:25 +0000 (+0200) Subject: python: datamodel: typo fixes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6121470ef012def5fbaf5800a0a0363eed6fbdd2;p=thirdparty%2Fknot-resolver.git python: datamodel: typo fixes --- diff --git a/doc/_static/config.schema.json b/doc/_static/config.schema.json index fccd20f7a..85ae6a365 100644 --- a/doc/_static/config.schema.json +++ b/doc/_static/config.schema.json @@ -84,7 +84,7 @@ "strict", "permissive" ], - "description": "Glue records scrictness checking level.", + "description": "Glue records strictness checking level.", "default": "normal" }, "minimize": { @@ -618,7 +618,7 @@ }, "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": { @@ -805,7 +805,7 @@ "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 } } @@ -1079,7 +1079,7 @@ "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": { @@ -1507,7 +1507,7 @@ } }, "monitoring": { - "description": "Metrics exposisition configuration (Prometheus, Graphite)", + "description": "Metrics exposition configuration (Prometheus, Graphite)", "type": "object", "properties": { "metrics": { diff --git a/python/knot_resolver/datamodel/cache_schema.py b/python/knot_resolver/datamodel/cache_schema.py index c616a3d78..630728207 100644 --- a/python/knot_resolver/datamodel/cache_schema.py +++ b/python/knot_resolver/datamodel/cache_schema.py @@ -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. diff --git a/python/knot_resolver/datamodel/config_schema.py b/python/knot_resolver/datamodel/config_schema.py index 4855fdcc7..dbc63071f 100644 --- a/python/knot_resolver/datamodel/config_schema.py +++ b/python/knot_resolver/datamodel/config_schema.py @@ -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). diff --git a/python/knot_resolver/datamodel/forward_schema.py b/python/knot_resolver/datamodel/forward_schema.py index 6b693e6be..c40e22136 100644 --- a/python/knot_resolver/datamodel/forward_schema.py +++ b/python/knot_resolver/datamodel/forward_schema.py @@ -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): diff --git a/python/knot_resolver/datamodel/globals.py b/python/knot_resolver/datamodel/globals.py index 044cf475b..5482b9380 100644 --- a/python/knot_resolver/datamodel/globals.py +++ b/python/knot_resolver/datamodel/globals.py @@ -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" diff --git a/python/knot_resolver/datamodel/local_data_schema.py b/python/knot_resolver/datamodel/local_data_schema.py index 58a88fa8f..5eb4bcdef 100644 --- a/python/knot_resolver/datamodel/local_data_schema.py +++ b/python/knot_resolver/datamodel/local_data_schema.py @@ -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. diff --git a/python/knot_resolver/datamodel/options_schema.py b/python/knot_resolver/datamodel/options_schema.py index a9936eb4c..6370a6e2f 100644 --- a/python/knot_resolver/datamodel/options_schema.py +++ b/python/knot_resolver/datamodel/options_schema.py @@ -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.