From a3a000aef9baeeb7429a99f371df4e98e1d074ec Mon Sep 17 00:00:00 2001 From: Ethan Palm <56270045+ethanpalm@users.noreply.github.com> Date: Fri, 15 Aug 2025 14:36:41 -0700 Subject: [PATCH 1/2] fix code sample highlighting --- api-playground/openapi-setup.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api-playground/openapi-setup.mdx b/api-playground/openapi-setup.mdx index 6fa7f3431..32a4bcf9a 100644 --- a/api-playground/openapi-setup.mdx +++ b/api-playground/openapi-setup.mdx @@ -208,7 +208,7 @@ Selectively expose endpoints as Model Context Protocol (MCP) tools by using `x-m -```json Selective enablement {6-10, 21} wrap +```json Selective enablement {6-9, 21} wrap { "paths": { "/users": { @@ -233,7 +233,7 @@ Selectively expose endpoints as Model Context Protocol (MCP) tools by using `x-m } ``` -```json Global enablement {3-5, 9-12} wrap +```json Global enablement {3-5, 9-13} wrap { "openapi": "3.1.0", "x-mcp": { @@ -368,7 +368,7 @@ Any page entry matching the format `METHOD /path` will generate an API page for OpenAPI specifications are inherited down the navigation hierarchy. Child navigation elements inherit their parent's OpenAPI specification unless they define their own: -```json {5, 12-13, 18, 20-21} +```json {3, 7-8, 11, 13-14} { "group": "API reference", "openapi": "/path/to/openapi-v1.json", @@ -386,7 +386,7 @@ OpenAPI specifications are inherited down the navigation hierarchy. Child naviga ] } ] -}, +} ``` #### Individual endpoints From a6cbd675d97410a0f0720757bf92daf43b37d949 Mon Sep 17 00:00:00 2001 From: Ethan Palm <56270045+ethanpalm@users.noreply.github.com> Date: Fri, 15 Aug 2025 14:39:02 -0700 Subject: [PATCH 2/2] update sample highlighting --- api-playground/openapi-setup.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-playground/openapi-setup.mdx b/api-playground/openapi-setup.mdx index 32a4bcf9a..de396cc57 100644 --- a/api-playground/openapi-setup.mdx +++ b/api-playground/openapi-setup.mdx @@ -208,7 +208,7 @@ Selectively expose endpoints as Model Context Protocol (MCP) tools by using `x-m -```json Selective enablement {6-9, 21} wrap +```json Selective enablement {6-9} wrap { "paths": { "/users": {