From 9f7685a2a8b92fa1a88871f7b3b93e1316d4c2c3 Mon Sep 17 00:00:00 2001 From: Nicolai Cornelis Date: Thu, 24 Oct 2024 22:47:33 +0200 Subject: [PATCH] Adjustments to schema --- schema.json | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/schema.json b/schema.json index 6521f26..9f1a0af 100644 --- a/schema.json +++ b/schema.json @@ -6,17 +6,24 @@ "title": "roadrunner-grpc", "additionalProperties": false, "required": [ - "proto" + "proto", + "listen" ], "properties": { "listen": { - "description": "GRPC address to listen on.", - "$ref": "https://raw.githubusercontent.com/roadrunner-server/roadrunner/refs/heads/master/schemas/config/3.0.schema.json#/definitions/HostAndPortWithTCP" + "description": "gRPC address to listen on. Supports both TCP and Unix sockets.", + "type": "string", + "minLength": 1, + "examples": [ + "tcp://127.0.0.1:443", + "${TCP:-tcp://127.0.0.1:443}", + "tcp://127.0.0.1:${TCP_PORT}" + ] }, "proto": { "type": "array", "minItems": 1, - "description": "Proto file to use. Multiple files are supported. Wildcards are allowed in the proto field.", + "description": "Proto file(s) to use. Multiple files are supported. Wildcards are allowed in the proto field.", "items": { "type": "string", "minLength": 1, @@ -73,7 +80,7 @@ "$ref": "#/$defs/duration" }, "max_concurrent_streams": { - "description": "The maximum number of concurrent streams. Empty or 0 means 10.", + "description": "The maximum number of concurrent streams. Empty or 0 defaults to 10.", "type": "integer", "default": 10 },