Greg Bergé
f4a90defc3
Remove Recoil ( #2674 )
2025-01-06 16:06:59 +01:00
Steven H
eb7c22f52a
Revert Scalar to a previous version to mitigate an app crash happening when switching between API pages. ( #2670 )
2025-01-06 11:57:51 +00:00
Samy Pessé
e4e2f524d4
Track site insight event when opening scalar client ( #2658 )
2024-12-21 15:57:10 +01:00
Amrit Kahlon
fc7b16f6a7
Update scalar dependency ( #2652 )
2024-12-20 23:16:11 +01:00
vibhanshub
867481c66d
Support Integers in Response sample ( #2592 )
2024-11-28 14:19:37 +00:00
Amrit Kahlon
4771c78001
Fix Scalar ApiClient routing ( #2561 )
2024-10-28 12:38:18 -07:00
Amrit Kahlon
f89b31c940
Upgrade to the new scalar client ( #2539 )
...
Co-authored-by: Samy Pessé <samypesse@gmail.com >
2024-10-24 14:40:33 +02: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
Samy Pessé
1c0ea074b3
Update API client and fetch API blocks in new format only ( #137 )
2024-02-07 18:19:30 +01:00
Samy Pessé
c829555f1b
Rename Authentication to Authorization ( #133 )
2024-02-02 10:20:30 +01:00
Samy Pessé
260305759d
Resolve any JSON/YAML OpenAPI file and resolve common parameters ( #132 )
...
* Fix parsing of OpenAPI when content-type is unknown
* Resolve common parameters
* Format
2024-02-01 22:29:28 +01:00
Samy Pessé
b5e6673976
Fix empty API responses not being displayed ( #130 )
...
* Fix response not being displayed when contains no body
* Fix padding
2024-02-01 10:30:03 +01:00
Samy Pessé
f8fde8cec8
OpenAPI improvements ( #127 )
...
* Fix display of authentication infos
* Fix property names
* Fix body / request starting with oneOf
* CSS fixes
* Show description
* Format
* Fix code samples
2024-01-31 14:36:20 +01:00
Samy Pessé
85ec1884e6
OpenAPI blocks ( #74 )
...
* Start methods to resolve refs
* bun
* Start package
* Add code to resolve ref
* Continue
* Deref
* Start monorepo
* Continue
* Fix ref resolver
* Style a bit more
* Start toggling section
* Continue
* Start displaying query/path/headers params
* Hide respo se if empty
* Fix recursive refs
* Simplify interactive and styling
* Display enums
* Format
* Improve type name being displayed
* Improve naming
* Render oneOf/anyOf/allOf
* Handle circular references
* Start variable in server url
* Use client component for the spec part
* Improve CSS sizing
* Display open api blocks in aside
* Make aside an overlay
* Improve stickiness of openapi
* Align document on the left when api page
* Improve general layout
* Better align
* Fix padding in aside
* Use syntax highlighting
* Show sample of response
* Improve code generation
* Improve code generated
* Format
* Format
* Rename to OpenAPI
* Skip deprecated properties and handle additionalProperties
* Use discriminator for naming
* Better name enum
* Make entire header toggeable
* Format and lint
* Add curl example
* Improve curl
* style pass
* Start securities
* Bun
* Fix TS
* Improve label
* Start markdown
* Improve code samples
* Test
* Use custom skeleton for api block
* Format
* Add support for redocly code samples
* Fix api blocks in aside
* Use typography for markdown
* Format
* Fix spacing in markdown
* Render headers
* Format
* Format
---------
Co-authored-by: Sebastian Graz <graz@live.se >
2024-01-30 10:15:58 +01:00