Brett Jephson
cb3c1f9f78
Formatting
2024-10-02 11:50:18 +01:00
Brett Jephson
ce890c609c
Refactor - naming and comments
2024-10-02 11:44:10 +01:00
Brett Jephson
8d1c349ed1
Don't make server url editable if no update function or context
2024-09-25 09:36:37 +01:00
Brett Jephson
f6b75e7dbd
Self review changes
2024-09-24 16:35:31 +01:00
Brett Jephson
ea4f70ec88
Update icon
2024-09-24 16:25:35 +01:00
Brett Jephson
768b555f66
Formatting
2024-09-24 16:25:35 +01:00
Brett Jephson
96d5537087
Add server url cache to update request code sample
2024-09-24 16:25:35 +01:00
Brett Jephson
28c59d81e7
Formatting
2024-09-24 16:25:35 +01:00
Brett Jephson
3d147902d6
Fix type
2024-09-24 16:25:35 +01:00
Brett Jephson
a6adfaaf27
Add icons for editing url
2024-09-24 16:25:35 +01:00
Brett Jephson
d29a7a6f15
Revised client state with context
2024-09-24 16:25:35 +01:00
Brett Jephson
c338bca2ba
Format
2024-09-24 16:25:35 +01:00
Brett Jephson
4f59d18bfc
Update server choice based on selection
2024-09-24 16:25:35 +01:00
Brett Jephson
b87ec84fd5
Update server url based on variable selection
2024-09-24 16:25:35 +01:00
Brett Jephson
e793a177f6
Select variables in server url
2024-09-24 16:25:35 +01:00
Samy Pessé
42473611d3
Add required query parameters to the code sample ( #2474 )
2024-09-19 14:31:22 +02:00
vibhanshub
aa8c49eb0c
Display pattern if available in OpenAPI params ( #2461 )
...
Co-authored-by: Samy Pessé <samypesse@gmail.com >
2024-09-19 09:59:10 +02:00
Brett Jephson
e9149036f6
RND-3387: synchronize response tabs ( #2457 )
...
Co-authored-by: Samy Pessé <samypesse@gmail.com >
2024-09-12 11:01:29 +01:00
Samy Pessé
237b703a6c
Fix crash in OpenAPI block because of undefined examples ( #2458 )
2024-09-06 16:55:04 +02:00
vibhanshub
cf3045a718
Add Python support in code samples ( #2453 )
2024-09-06 14:29:50 +01:00
vibhanshub
a679e7283f
Render mandatory headers in the code sample ( #2445 )
2024-09-06 13:24:52 +01:00
Marc Laventure
4cbcc5bb20
fix: rollback scalar ( #2454 )
...
Co-authored-by: Brett Jephson <brett@gitbook.io >
2024-09-06 10:32:33 +01:00
Brett Jephson
51955dae3b
Response examples with status code tabs ( #2448 )
2024-09-06 09:35:43 +01:00
Brett Jephson
51fa3ab2c8
Use content-visibility on open api operations ( #2451 )
2024-09-05 17:21:42 +01:00
Samy Pessé
5c35f36b3a
Prepare @gitbook/icons package and use it as a replacement of geist/icons ( #2404 )
2024-08-02 09:59:44 +02:00
Samy Pessé
0426312d6c
Reset to first tab when tabs change in an InteractiveSection ( #2407 )
2024-07-25 15:09:21 +02:00
Samy Pessé
ede2335fb3
Fix x-codeSamples: false not working at the single operation level ( #2408 )
2024-07-25 14:59:30 +02:00
Amrit Kahlon
709f1a1ccb
Update Scalar Api Client to new version ( #2406 )
...
Co-authored-by: marclave <marc@scalar.com >
Co-authored-by: Samy Pessé <samypesse@gmail.com >
2024-07-25 10:25:50 +02:00
Samy Pessé
bd0ca5babd
Fix @gitbook/react-openapi when react import are mandatory ( #2389 )
2024-07-21 19:43:50 +02:00
Samy Pessé
b8c136e9c0
Fix render of one of when alternatives are primitives ( #2378 )
2024-07-15 10:15:42 +02:00
Samy Pessé
81b372f372
Fix response example when response example is a string ( #2377 )
2024-07-12 10:35:22 +02:00
Samy Pessé
aaf5793cb7
Use schema.example if defined, even if value is falsy ( #2370 )
2024-07-05 16:34:48 +02:00
Samy Pessé
8d38d000fd
Fix RND-4344 ( #2368 )
2024-07-04 17:04:35 +02:00
vibhanshub
106cbbd987
Add support for examples in OpenAPI block ( #2314 )
2024-06-20 16:02:58 +05:30
Marc Laventure
cf74d00758
chore: update scalar client ( #2316 )
2024-05-14 11:52:09 -07:00
Steven H
3076e96061
Fix an issue where OpenAPI blocks could not be fetched. ( #2267 )
2024-04-04 12:28:30 +02:00
Samy Pessé
c1ef7f2782
Fix display of parameter's description in OpenAPI block ( #2258 )
2024-04-02 00:35:59 +02:00
Samy Pessé
4f728c0137
Fix parsing of Swagger 2.0 when it can be patched ( #2254 )
2024-03-31 20:13:34 +02:00
Samy Pessé
0894a740ff
Fix crash when "required" is not an array in OpenAPI schemas ( #2247 )
2024-03-28 17:03:30 +01:00
Amrit Kahlon
ef8eb72364
fix: clear scalar api client response on close ( #318 )
...
* fix: clear scalar api client response on close
* bun install
---------
Co-authored-by: Samy Pessé <samypesse@gmail.com >
2024-03-21 14:53:29 +01:00
Samy Pessé
37be6f3164
Support options in the OpenAPI spec to control the look and feel ( #306 )
...
* Don't show code-samples if x-codeSamples is defined
* Support x-hideTryItPanel to hide "Try it"
* Fix display of code samples
2024-03-19 16:32:15 +01:00
Marc Laventure
4f039ecb2b
feat: add scalar api client ( #180 )
...
* wip
* feat: add scalar api client
* fix: pr feedback
* feat: add scalar react client package, remove vueary
* feat: add scalar proxy
* Move dependencies to package
* Format once
* Rename prop
* Use react context and simplify lazy loading
* Add loading state
* Format
* Move styles
* bun install
* bun
* fix: remove extraneous api-reference package
* feat: make operation functional with spec in client
* fix: column bug and http request type wrapping
* fix: add scalar api reference package
* Format
* bun install
* fix: scrolling in scalar modal
* Lazy load operations data in component
* fix: change dependency from api-reference to oas-utils to reduce size
* bun install
* Log error in the worker proxy
* Cleanup
* Comment "mode"
* Without credentials and referrerPolicy
---------
Co-authored-by: Samy Pessé <samypesse@gmail.com >
Co-authored-by: Amrit <amrit@hockey-community.com >
2024-03-19 15:32:54 +01:00
Steven H
d8ffa5d69c
Fix an issue where parsing an OpenAPI schema without securitySchemas would crash the page. ( #263 )
2024-03-15 10:27:23 +00:00
Scott Cazan
fc11ffdc8b
Don't try to render responses if none are defined by the user ( #255 )
...
* don't try to parse responses if none are defined
* don't try to render responses if none exists
* move logic back into component
2024-03-13 14:37:21 +01:00
Scott Cazan
658eb4d13f
extra check for undefined in schema.items ( #250 )
2024-03-13 12:24:10 +01:00
Samy Pessé
f41b0c7ba1
Fix crash when resolving ref fails in an OpenAPI file ( #220 )
...
* Fix crash when resolving ref fails in an OpenAPI file
* Use static.gitbook.com for assets prefix
2024-03-06 18:09:34 +01:00
Samy Pessé
203e9103de
Fix crash when displaying invalid Swagger 2.0 block ( #214 )
...
* Ignore errors when converting Swagger 2 to OpenAPI 3
* Apply page-api-block only when a block is actually displayed
* Format
* Try to be more lax
2024-03-06 10:43:11 +01:00
Samy Pessé
44945f887a
Fix crash when no example can be generated for response of API ( #207 )
2024-03-05 15:51:40 +01:00
Samy Pessé
1e1d202b5a
Improve PDF export for tabs/expandables/api blocks ( #204 )
...
* Fix integrations blocks and text being too long
* Fix size of code blocks
* Open expandable by default on print mode
* Render tabs one after the other
* Adjust colors
* Open all in openapi when printing
* Fix title
* Format
* Fix TS
2024-02-29 19:49:03 +01:00
Samy Pessé
9e5f717fbe
Fix Bearer schema in code sample ( #147 )
2024-02-13 11:01:33 +01:00