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
Marc Laventure
c079c3c6d9
chore: bump scalar package ( #2421 )
...
Co-authored-by: Samy Pessé <samypesse@gmail.com >
2024-08-21 08:27:22 +02:00
Marc Laventure
094e9cdac2
chore: bump scalar ( #2410 )
...
Co-authored-by: Samy Pessé <samypesse@gmail.com >
2024-08-02 10:24:39 +02: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é
32a73b55d4
Version Packages ( #2403 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-25 15:12:18 +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é
7e74d25447
Version Packages ( #2397 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-22 16:26:53 +02:00
Samy Pessé
3445db41ce
Fix packages not including all files ( #2396 )
2024-07-22 16:20:06 +02:00
Samy Pessé
d1bd02a6f5
Version Packages ( #2395 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-22 15:43:27 +02:00
github-actions[bot]
47f7558c38
Version Packages ( #2393 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-22 15:05:57 +02:00
Samy Pessé
de747b7b33
Better structure monorepo and publish JS files for react-openapi and react-math ( #2392 )
2024-07-22 15:02:04 +02:00
github-actions[bot]
e966e33e8f
Version Packages ( #2390 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-21 19:45:18 +02:00
Samy Pessé
bd0ca5babd
Fix @gitbook/react-openapi when react import are mandatory ( #2389 )
2024-07-21 19:43:50 +02:00
github-actions[bot]
ba2a523722
Version Packages ( #2387 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-19 08:28:14 +02:00
github-actions[bot]
7377928c8a
Version Packages ( #2385 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-18 21:05:22 +02:00
Samy Pessé
5f8a8fe9b1
Setup Changeset to publish packages to NPM ( #2384 )
2024-07-18 21:00: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
Samy Pessé
cf958bacd1
Fallback to MathJax when KaTeX fails to compile math ( #303 )
...
* Start
* Use MathJax v3
* Format
* Improve font-size
* Lint
* Better handle loading
* Copy MathJax assets to public folder
* Attempt at using local assets for MathJax
* Use bun 1.0.31
* Try with bun 1.0.33
* Try fixing headers
* Simplify
* Simplify and not use suspense module
* Cleanup more
* Add test for Math
* Make math block scroll if needed
* Update packages/react-math/src/KaTeX.tsx
Co-authored-by: Greg Bergé <berge.greg@gmail.com >
* Use React.use
* Format
* Use exports
* Lint
* Disable cache in CI for lint
* Format
---------
Co-authored-by: Greg Bergé <berge.greg@gmail.com >
2024-03-19 11:34:53 +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