diff --git a/libs/cli/langgraph_cli/config.py b/libs/cli/langgraph_cli/config.py index 00f78e828..2f0e56b81 100644 --- a/libs/cli/langgraph_cli/config.py +++ b/libs/cli/langgraph_cli/config.py @@ -159,7 +159,7 @@ class SecurityConfig(TypedDict, total=False): """ securitySchemes: dict[str, dict[str, Any]] - """Required. Dict describing each security scheme recognized by your OpenAPI spec. + """Describe each security scheme recognized by your OpenAPI spec. Keys are scheme names (e.g. "OAuth2", "ApiKeyAuth") and values are their definitions. Example: @@ -176,7 +176,7 @@ class SecurityConfig(TypedDict, total=False): } """ security: list[dict[str, list[str]]] - """Optional. Global security requirements across all endpoints. + """Global security requirements across all endpoints. Each element in the list maps a security scheme (e.g. "OAuth2") to a list of scopes (e.g. ["read", "write"]). Example: @@ -187,7 +187,7 @@ class SecurityConfig(TypedDict, total=False): """ # path => {method => security} paths: dict[str, dict[str, list[dict[str, list[str]]]]] - """Optional. Path-specific security overrides. + """Path-specific security overrides. Keys are path templates (e.g., "/items/{item_id}"), mapping to: - Keys that are HTTP methods (e.g., "GET", "POST"), @@ -219,7 +219,7 @@ class AuthConfig(TypedDict, total=False): authentication logic, regardless of origin of the request. """ openapi: SecurityConfig - """Required. Detailed security configuration that merges into your deployment's OpenAPI spec. + """The security configuration to include in your server's OpenAPI spec. Example (OAuth2): { diff --git a/libs/cli/schemas/schema.json b/libs/cli/schemas/schema.json index bae43bfb1..42f4b5bdf 100644 --- a/libs/cli/schemas/schema.json +++ b/libs/cli/schemas/schema.json @@ -411,7 +411,7 @@ }, "openapi": { "$ref": "#/$defs/SecurityConfig", - "description": "Required. Detailed security configuration that merges into your deployment's OpenAPI spec.\n\n{\n}\n}\n}\n},\n]\n}\n" + "description": "The security configuration to include in your server's OpenAPI spec.\n\n{\n}\n}\n}\n},\n]\n}\n" }, "path": { "type": "string", @@ -442,7 +442,7 @@ } } }, - "description": "Optional. Path-specific security overrides.\n\n- Keys that are HTTP methods (e.g., \"GET\", \"POST\"),\n- Values are lists of security definitions (just like `security`) for that method.\n" + "description": "Path-specific security overrides.\n\n- Keys that are HTTP methods (e.g., \"GET\", \"POST\"),\n- Values are lists of security definitions (just like `security`) for that method.\n" }, "security": { "type": "array", @@ -455,14 +455,14 @@ } } }, - "description": "Optional. Global security requirements across all endpoints.\n\nEach element in the list maps a security scheme (e.g. \"OAuth2\") to a list of scopes (e.g. [\"read\", \"write\"])." + "description": "Global security requirements across all endpoints.\n\nEach element in the list maps a security scheme (e.g. \"OAuth2\") to a list of scopes (e.g. [\"read\", \"write\"])." }, "securitySchemes": { "type": "object", "additionalProperties": { "type": "object" }, - "description": "Required. Dict describing each security scheme recognized by your OpenAPI spec.\n\nKeys are scheme names (e.g. \"OAuth2\", \"ApiKeyAuth\") and values are their definitions." + "description": "Describe each security scheme recognized by your OpenAPI spec.\n\nKeys are scheme names (e.g. \"OAuth2\", \"ApiKeyAuth\") and values are their definitions." } }, "required": [] diff --git a/libs/cli/schemas/schema.v0.json b/libs/cli/schemas/schema.v0.json index bae43bfb1..42f4b5bdf 100644 --- a/libs/cli/schemas/schema.v0.json +++ b/libs/cli/schemas/schema.v0.json @@ -411,7 +411,7 @@ }, "openapi": { "$ref": "#/$defs/SecurityConfig", - "description": "Required. Detailed security configuration that merges into your deployment's OpenAPI spec.\n\n{\n}\n}\n}\n},\n]\n}\n" + "description": "The security configuration to include in your server's OpenAPI spec.\n\n{\n}\n}\n}\n},\n]\n}\n" }, "path": { "type": "string", @@ -442,7 +442,7 @@ } } }, - "description": "Optional. Path-specific security overrides.\n\n- Keys that are HTTP methods (e.g., \"GET\", \"POST\"),\n- Values are lists of security definitions (just like `security`) for that method.\n" + "description": "Path-specific security overrides.\n\n- Keys that are HTTP methods (e.g., \"GET\", \"POST\"),\n- Values are lists of security definitions (just like `security`) for that method.\n" }, "security": { "type": "array", @@ -455,14 +455,14 @@ } } }, - "description": "Optional. Global security requirements across all endpoints.\n\nEach element in the list maps a security scheme (e.g. \"OAuth2\") to a list of scopes (e.g. [\"read\", \"write\"])." + "description": "Global security requirements across all endpoints.\n\nEach element in the list maps a security scheme (e.g. \"OAuth2\") to a list of scopes (e.g. [\"read\", \"write\"])." }, "securitySchemes": { "type": "object", "additionalProperties": { "type": "object" }, - "description": "Required. Dict describing each security scheme recognized by your OpenAPI spec.\n\nKeys are scheme names (e.g. \"OAuth2\", \"ApiKeyAuth\") and values are their definitions." + "description": "Describe each security scheme recognized by your OpenAPI spec.\n\nKeys are scheme names (e.g. \"OAuth2\", \"ApiKeyAuth\") and values are their definitions." } }, "required": []