From 92f3c43c2ca5b4c8ab4fffacc16f248bd800386c Mon Sep 17 00:00:00 2001 From: monosans Date: Fri, 27 Feb 2026 11:30:20 +0300 Subject: [PATCH] fix crlf --- config-schema.json | 234 ++++++++++++++++++++++----------------------- 1 file changed, 117 insertions(+), 117 deletions(-) diff --git a/config-schema.json b/config-schema.json index 110de9c..440e45e 100644 --- a/config-schema.json +++ b/config-schema.json @@ -1,117 +1,117 @@ -{ - "$id": "https://github.com/monosans/proxy-scraper-checker/blob/main/config.toml", - "$schema": "https://json-schema.org/draft/2020-12/schema", - "title": "proxy-scraper-checker config", - "type": "object", - "$defs": { - "protocol_config": { - "type": "object", - "properties": { - "enabled": { "type": "boolean" }, - "urls": { - "type": "array", - "items": { - "anyOf": [ - { "type": "string" }, - { - "type": "object", - "properties": { - "url": { "type": "string" }, - "basic_auth": { - "type": "object", - "properties": { - "username": { "type": "string" }, - "password": { "type": "string" } - }, - "required": ["username", "password"], - "additionalProperties": false - }, - "headers": { - "type": "object", - "patternProperties": { ".*": { "type": "string" } }, - "additionalProperties": false - } - }, - "required": ["url"], - "additionalProperties": false, - "x-tombi-array-values-order-by": "url" - } - ] - }, - "x-tombi-array-values-order": "ascending" - } - }, - "required": ["enabled", "urls"], - "additionalProperties": false - } - }, - "properties": { - "debug": { "type": "boolean" }, - "output": { - "type": "object", - "properties": { - "path": { "type": "string" }, - "sort_by_speed": { "type": "boolean" }, - "txt": { - "type": "object", - "properties": { "enabled": { "type": "boolean" } }, - "required": ["enabled"], - "additionalProperties": false - }, - "json": { - "type": "object", - "properties": { - "enabled": { "type": "boolean" }, - "include_asn": { "type": "boolean" }, - "include_geolocation": { "type": "boolean" } - }, - "required": ["enabled", "include_asn", "include_geolocation"], - "additionalProperties": false - } - }, - "required": ["path", "sort_by_speed", "txt", "json"], - "additionalProperties": false - }, - "checking": { - "type": "object", - "properties": { - "check_url": { "type": "string" }, - "max_concurrent_checks": { "type": "integer", "minimum": 1 }, - "timeout": { "type": "number", "minimum": 0 }, - "connect_timeout": { "type": "number", "minimum": 0 }, - "user_agent": { "type": "string" } - }, - "required": [ - "check_url", - "max_concurrent_checks", - "timeout", - "connect_timeout", - "user_agent" - ], - "additionalProperties": false - }, - "scraping": { - "type": "object", - "properties": { - "max_proxies_per_source": { "type": "integer", "minimum": 0 }, - "timeout": { "type": "number", "minimum": 0 }, - "connect_timeout": { "type": "number", "minimum": 0 }, - "proxy": { "type": "string" }, - "user_agent": { "type": "string" }, - "http": { "$ref": "#/$defs/protocol_config" }, - "socks4": { "$ref": "#/$defs/protocol_config" }, - "socks5": { "$ref": "#/$defs/protocol_config" } - }, - "required": [ - "max_proxies_per_source", - "timeout", - "connect_timeout", - "proxy", - "user_agent" - ], - "additionalProperties": false - } - }, - "required": ["debug", "output", "checking", "scraping"], - "additionalProperties": false -} +{ + "$id": "https://github.com/monosans/proxy-scraper-checker/blob/main/config.toml", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "proxy-scraper-checker config", + "type": "object", + "$defs": { + "protocol_config": { + "type": "object", + "properties": { + "enabled": { "type": "boolean" }, + "urls": { + "type": "array", + "items": { + "anyOf": [ + { "type": "string" }, + { + "type": "object", + "properties": { + "url": { "type": "string" }, + "basic_auth": { + "type": "object", + "properties": { + "username": { "type": "string" }, + "password": { "type": "string" } + }, + "required": ["username", "password"], + "additionalProperties": false + }, + "headers": { + "type": "object", + "patternProperties": { ".*": { "type": "string" } }, + "additionalProperties": false + } + }, + "required": ["url"], + "additionalProperties": false, + "x-tombi-array-values-order-by": "url" + } + ] + }, + "x-tombi-array-values-order": "ascending" + } + }, + "required": ["enabled", "urls"], + "additionalProperties": false + } + }, + "properties": { + "debug": { "type": "boolean" }, + "output": { + "type": "object", + "properties": { + "path": { "type": "string" }, + "sort_by_speed": { "type": "boolean" }, + "txt": { + "type": "object", + "properties": { "enabled": { "type": "boolean" } }, + "required": ["enabled"], + "additionalProperties": false + }, + "json": { + "type": "object", + "properties": { + "enabled": { "type": "boolean" }, + "include_asn": { "type": "boolean" }, + "include_geolocation": { "type": "boolean" } + }, + "required": ["enabled", "include_asn", "include_geolocation"], + "additionalProperties": false + } + }, + "required": ["path", "sort_by_speed", "txt", "json"], + "additionalProperties": false + }, + "checking": { + "type": "object", + "properties": { + "check_url": { "type": "string" }, + "max_concurrent_checks": { "type": "integer", "minimum": 1 }, + "timeout": { "type": "number", "minimum": 0 }, + "connect_timeout": { "type": "number", "minimum": 0 }, + "user_agent": { "type": "string" } + }, + "required": [ + "check_url", + "max_concurrent_checks", + "timeout", + "connect_timeout", + "user_agent" + ], + "additionalProperties": false + }, + "scraping": { + "type": "object", + "properties": { + "max_proxies_per_source": { "type": "integer", "minimum": 0 }, + "timeout": { "type": "number", "minimum": 0 }, + "connect_timeout": { "type": "number", "minimum": 0 }, + "proxy": { "type": "string" }, + "user_agent": { "type": "string" }, + "http": { "$ref": "#/$defs/protocol_config" }, + "socks4": { "$ref": "#/$defs/protocol_config" }, + "socks5": { "$ref": "#/$defs/protocol_config" } + }, + "required": [ + "max_proxies_per_source", + "timeout", + "connect_timeout", + "proxy", + "user_agent" + ], + "additionalProperties": false + } + }, + "required": ["debug", "output", "checking", "scraping"], + "additionalProperties": false +}