Zeno Kapitein
581eabe383
Add Custom language option to OpenAPI code samples
...
OpenAPI code-sample blocks now show a language icon next to every option and add a "Custom language" entry that opens the assistant pre-filled (as a draft, not sent) with the current request staged as a reference and the prompt "Rewrite this in the following language: ", letting readers rewrite the request in any language.
- react-openapi: new OpenAPICodeSampleAssistant context the host app fills in; the selector renders per-language icons and the Custom action item (OpenAPISelect gains an action/onAction concept so it fires without changing the selection). Adds getCodeSampleIcon to the render context and 3 translation keys across all locales.
- gitbook: new setDraft controller method + inputDraft state so the chat input can be pre-filled without sending; OpenAPICodeSampleAIProvider bridges the GitBook assistant (logo, name, reference + draft action) into react-openapi, mounted once in SpaceLayout (covers site and embed); maps languages to icons.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-12 18:29:12 +02:00
Samy Pessé
60310b4c83
Version Packages ( #4278 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-06-12 14:55:55 +02:00
Nolann B.
f158064817
Match OpenAPI operation paths regardless of trailing slash ( #4282 )
2026-05-29 12:16:24 +02:00
Samy Pessé
afc7a38bef
Version Packages ( #4163 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-13 14:16:46 +02:00
Samy Pessé
e3d391e01b
Version Packages ( #4102 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-31 17:01:13 +02:00
Nolann B.
b5d6f2e908
Fix translation quality across 11 locales ( #4146 )
2026-03-30 13:17:03 +02:00
Nolann B.
c56b569a05
Support expand-all options for OpenAPI ( #4116 )
2026-03-25 23:53:51 +01:00
Nolann B.
7f4e644733
Small OpenAPI improvements ( #4131 )
2026-03-20 11:15:03 +01:00
Nolann B.
60bcf43304
Fix allOf merging for annotation-only schemas ( #4118 )
2026-03-20 10:03:56 +01:00
Nolann B.
aff6285eb9
Deep-merge schema properties in OpenAPISchema ( #4124 )
2026-03-18 13:09:04 +01:00
Nolann B.
6455f2e3ff
Fix parent schema metadata lost during oneOf/anyOf allOf flattening ( #4119 )
2026-03-17 10:31:12 +01:00
Nolann B.
dee52fa80a
Fix schema title display stripping spaces ( #4120 )
2026-03-17 10:27:56 +01:00
Nolann B.
9dd2db6678
Support x-gitbook-token-placeholder as TryIt prefill fallback for basic auth ( #4105 )
2026-03-11 20:35:13 +01:00
Samy Pessé
0f162a45a7
Version Packages ( #4082 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Zeno Kapitein <zeno@gitbook.io >
2026-03-11 12:56:28 +00:00
Nolann B.
bdc6cd9aba
Use OpenAPI publicURL as Scalar specUrl ( #4093 )
2026-03-11 11:21:14 +01:00
Nolann B.
887c3f8eac
Add token verification on OpenAPI proxy ( #4085 )
2026-03-08 16:50:43 +01:00
Nolann B.
eceec6f641
Move ~scalar/proxy route to site route group ( #4083 )
2026-03-05 19:06:06 +01:00
Nolann B.
8ab419a47e
Support x-enable-proxy at operation level ( #4080 )
2026-03-05 10:05:17 +01:00
Samy Pessé
56ce5dfd74
Version Packages ( #4048 )
2026-03-04 20:32:40 +01:00
Nolann B.
8621c7f571
Support alternative security scope groups ( #3976 )
2026-03-02 17:04:31 +01:00
Nolann B.
e074283bbf
Add server-side proxy for Scalar API client to bypass CORS ( #4050 )
2026-02-27 12:18:07 +01:00
Samy Pessé
a9adbc6370
Version Packages ( #3991 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-25 11:37:48 +01:00
Nolann B.
1a7ef78fe2
Handle non-array required field in OpenAPI schema ( #4030 )
2026-02-21 13:34:12 +01:00
Nolann B.
93eea0b6d9
Strip trailing slash from OpenAPI server URLs ( #4029 )
2026-02-20 14:40:36 +01:00
Nolann B.
f517035e38
Remove available scopes list from OAuth2 endpoints ( #4022 )
2026-02-18 21:20:58 +01:00
Nolann B.
2ebb18dc5a
Make OpenAPI Response structure clearer ( #4021 )
2026-02-18 14:32:07 +01:00
Nolann B.
11d9b80e77
Use precedence for OpenAPI servers ( #4020 )
2026-02-18 01:20:39 +01:00
Samy Pessé
17b32994f6
Version Packages ( #3990 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-11 14:37:35 +01:00
Nolann B.
717ad0b300
Fix OpenAPI try it button justify ( #3975 )
2026-02-05 11:16:58 +01:00
Nolann B.
a3eed52f24
Refine OpenAPI schema alternatives/allOf handling ( #3973 )
2026-02-05 11:00:59 +01:00
Zeno Kapitein
e00d1c5bbd
Support code themes customization option, refactor built-in code themes ( #3949 )
2026-01-28 13:48:56 +01:00
Nolann B.
48ca21e471
Add OpenAPI 3.1 nullable array support ( #3938 )
2026-01-26 14:05:14 +01:00
Nolann B.
3ba9e46f2b
Improve OpenAPI server URL validation ( #3937 )
2026-01-26 13:45:03 +01:00
Greg Bergé
4e2d86318e
Fix OpenAPI example not showing ( #3930 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-22 12:11:55 +01:00
Nolann B.
f647af2003
Prevent duplicate Content-Type headers in OpenAPI code samples ( #3924 )
2026-01-21 14:51:46 +01:00
Samy Pessé
7eeff73080
Version Packages ( #3902 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-13 16:13:41 +00:00
Greg Bergé
bf63045319
Fix OpenAPI JSX compilation ( #3901 )
2026-01-13 16:56:51 +01:00
Samy Pessé
71c2e7f8b4
Version Packages ( #3886 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-13 13:40:37 +00:00
Samy Pessé
050ca23ac4
Version Packages ( #3818 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-18 11:10:53 +00:00
Nolann B.
4766092ff9
Fix missing properties in allOf/oneOf ( #3871 )
2025-12-13 12:38:09 +01:00
Nolann B.
8761cee1bb
Enhance discriminator handling in OpenAPISchema ( #3855 )
2025-12-11 08:11:14 +01:00
Nolann B.
87d68ea59e
Fix OpenAPI oneOf/allOf merge ( #3844 )
2025-12-05 17:26:18 +01:00
Nolann B.
461e15fd00
Add x-gitbook-prefix and x-gitbook-token-placeholder for OpenAPI security scheme ( #3820 )
2025-11-22 10:44:05 +01:00
Nolann B.
344842f5ce
Improve OpenAPI circular references ( #3821 )
2025-11-19 22:44:32 +01:00
Nolann B.
3e40b4db50
Fix OpenAPI basic auth placeholder ( #3816 )
2025-11-18 20:18:59 +01:00
Samy Pessé
27a461be9d
Fix NPM publishing once and for all ( #3811 )
2025-11-16 02:16:20 +01:00
Samy Pessé
05bf9d7a59
Version Packages ( #3733 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-15 19:34:29 +01:00
Samy Pessé
10995e09ca
Use trusted publishing for publishing NPM packages ( #3808 )
2025-11-15 19:26:26 +01:00
Nolann B.
df1966df25
Bump Scalar ( #3803 )
2025-11-13 15:29:25 +01:00
Nolann B.
a512c90bda
Re-arrange OpenAPI Scopes for OAuth2 ( #3799 )
2025-11-12 19:40:21 +01:00