Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@scalar/api-reference

scalar73.3kMIT1.25.106TypeScript support: included

generate beautiful API references from OpenAPI specs

component, documentation, openapi, reference, spec, swagger, vue, vue3

readme

Scalar API Reference

Version Downloads Hits on jsdelivr License Discord

Generate interactive API documentations from Swagger files. Try our Demo

Screenshot of an API Reference

Installation

npm install @scalar/api-reference

Usage

<script setup>
import { ApiReference } from '@scalar/api-reference'
import '@scalar/api-reference/style.css'
</script>

<template>
  <ApiReference />
</template>

CDN

<!doctype html>
<html>
  <head>
    <title>Scalar API Reference</title>
    <meta charset="utf-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1" />
  </head>
  <body>
    <!-- Need a Custom Header? Check out this example: https://codepen.io/scalarorg/pen/VwOXqam -->
    <!-- Note: We’re using our public proxy to avoid CORS issues. You can remove the `data-proxy-url` attribute if you don’t need it. -->
    <script
      id="api-reference"
      data-url="https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml"
      data-proxy-url="https://proxy.scalar.com"></script>

    <!-- Optional: You can set a full configuration object like this: -->
    <script>
      var configuration = {
        theme: 'purple',
      }

      document.getElementById('api-reference').dataset.configuration =
        JSON.stringify(configuration)
    </script>

    <script src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"></script>
  </body>
</html>

You can also use the following syntax to directly pass an OpenAPI specification:

<script
  id="api-reference"
  type="application/json">
  { … }
</script>

If you’d like to add a request proxy for the API client (to avoid CORS issues):

<script
  id="api-reference"
  type="application/json"
  data-proxy-url="https://proxy.scalar.com">
  { … }
</script>

Events [beta]

We have recently added two events to the standalone CDN build only.

scalar:reload-references

Reload the references, this will re-mount the app in case you have switched pages or the dom elements have been removed.

document.dispatchEvent(new Event('scalar:reload-references'))
scalar:update-references-config

If you have updated the config or spec, you can trigger this event with the new payload to update the app. It should update reactively so you do not need to trigger the reload event above after.

import { type ReferenceProps } from './types'

const ev = new CustomEvent('scalar:update-references-config', {
  detail: {
    configuration: {
      spec: {
        url: 'https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml',
      },
    },
  } satisfies ReferenceProps,
})
document.dispatchEvent(ev)

Vue.js

The API Reference is built in Vue.js. If you’re working in Vue.js, too, you can directly use our Vue components. Install them via npm:

npm install @scalar/api-reference

And import the ApiReference component and style to your app:

<script setup lang="ts">
import { ApiReference } from '@scalar/api-reference'
import '@scalar/api-reference/style.css'
</script>

<template>
  <ApiReference
    :configuration="{
      spec: {
        url: 'https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml',
      },
    }" />
</template>

You can pass props to customize the API reference.

Community

We are API nerds. You too? Let’s chat on Discord: https://discord.gg/scalar

License

The source code in this repository is licensed under MIT.

changelog

@scalar/api-reference

1.25.106

Patch Changes

1.25.105

Patch Changes

1.25.104

Patch Changes

1.25.103

Patch Changes

1.25.102

Patch Changes

1.25.101

Patch Changes

1.25.100

Patch Changes

  • b291406: fix(api-client): redesign auth
  • b291406: style: adds data table and server auth component fixtures
  • c37fb70: style: displays property example in schemadisplays property example in schema
  • Updated dependencies [4a2b0a4]
  • Updated dependencies [b291406]
  • Updated dependencies [66bc910]
  • Updated dependencies [b291406]
  • Updated dependencies [46dce72]
  • Updated dependencies [58a2049]

1.25.99

Patch Changes

1.25.98

Patch Changes

1.25.97

Patch Changes

1.25.96

Patch Changes

1.25.95

Patch Changes

  • 6890d7e: fix: fix(api-reference): sets request server in request example hook
  • bc8f883: fix: ensure spec exists before trying to create store
  • Updated dependencies [6890d7e]
  • Updated dependencies [ca2d98b]
  • Updated dependencies [ca2d98b]
  • Updated dependencies [6890d7e]

1.25.94

Patch Changes

1.25.93

Patch Changes

1.25.92

Patch Changes

  • fd80d43: fix(api-reference): correct hash.value encoding to ensure scrolling
  • 47d1d82: feat: add debounce to client config update to improve perf
  • Updated dependencies [9b3a053]
  • Updated dependencies [46ebb44]
  • Updated dependencies [d4b17f5]

1.25.91

Patch Changes

1.25.90

Patch Changes

1.25.89

Patch Changes

1.25.88

Patch Changes

1.25.87

Patch Changes

1.25.86

Patch Changes

1.25.85

Patch Changes

1.25.84

Patch Changes

1.25.83

Patch Changes

  • 7a2b32d: fix: hides dark mode toggle only if configured
  • c78beda: fix: missing open in api client button

1.25.82

Patch Changes

  • bd84466: Removes hardcoded test prefix

1.25.81

Patch Changes

1.25.80

Patch Changes

  • a109244: fix: operation server null check

1.25.79

Patch Changes

  • cbc70ae: fix: circular dependency
  • eea1822: fix: adds server with variables to request example
  • Updated dependencies [371a105]
  • Updated dependencies [f2ec4f2]
  • Updated dependencies [035d9af]
  • Updated dependencies [8687842]
  • Updated dependencies [8017ff9]
  • Updated dependencies [e05c29f]

1.25.78

Patch Changes

1.25.77

Patch Changes

  • 3eb0d11: feat: moved api-client auth into references
  • Updated dependencies [3eb0d11]
  • Updated dependencies [b66a85c]
  • Updated dependencies [3eb0d11]
  • Updated dependencies [62e80cd]
  • Updated dependencies [bccfa3a]
  • Updated dependencies [66c1573]
  • Updated dependencies [b66a85c]
  • Updated dependencies [b66a85c]
  • Updated dependencies [b66a85c]

1.25.76

Patch Changes

1.25.75

Patch Changes

  • f955985: fix: favors use event listener for meta k command
  • c2be791: fix: watches text input to fuse search
  • Updated dependencies [a90d827]
  • Updated dependencies [57b5e5d]
  • Updated dependencies [d0adebf]
  • Updated dependencies [c2be791]
  • Updated dependencies [3b4a788]
  • Updated dependencies [3b4a788]
  • Updated dependencies [f4440f5]
  • Updated dependencies [4c5be96]
  • Updated dependencies [4c5be96]

1.25.74

Patch Changes

  • 13432e7: feat: fall back to the API reference URL for the import
  • Updated dependencies [b744324]
  • Updated dependencies [0804d6b]
  • Updated dependencies [0076308]
  • Updated dependencies [9b4f85d]
  • Updated dependencies [13432e7]

1.25.73

Patch Changes

1.25.72

Patch Changes

1.25.71

Patch Changes

1.25.70

Patch Changes

1.25.69

Patch Changes

1.25.68

Patch Changes

1.25.67

Patch Changes

1.25.66

Patch Changes

1.25.65

Patch Changes

  • bfad6dc: feat(use-hooks): create @scalar/use-hooks with useColorMode and useClipboard
  • c8fae11: fix(components): cleanup ScalarMenu and ScalarListbox
  • 6894b7d: feat: omits empty and optional properties from example request
  • Updated dependencies [bfad6dc]
  • Updated dependencies [c8fae11]
  • Updated dependencies [6894b7d]
  • Updated dependencies [c87353e]
  • Updated dependencies [c3d9f3c]

1.25.64

Patch Changes

1.25.63

Patch Changes

1.25.62

Patch Changes

1.25.61

Patch Changes

  • Updated dependencies [4bcaa75]
  • Updated dependencies [ecdf18d]
  • Updated dependencies [caa45c9]
  • Updated dependencies [9eb6650]
  • Updated dependencies [4a3c873]
  • Updated dependencies [c98a99c]
  • Updated dependencies [15a47e6]
  • Updated dependencies [576e94a]
  • Updated dependencies [09a6fba]
  • Updated dependencies [be50225]
  • Updated dependencies [0a0ca71]

1.25.60

Patch Changes

1.25.59

Patch Changes

1.25.58

Patch Changes

1.25.57

Patch Changes

1.25.56

Patch Changes

1.25.55

Patch Changes

  • 5d8c90b: fix: api references jumping in next.js
  • f764640: fix(api-reference): reflect hidden http clients and custom examples
  • Updated dependencies [db4a4b7]
  • Updated dependencies [c63ab07]
  • Updated dependencies [c929284]
  • Updated dependencies [2275977]
  • Updated dependencies [e044d78]
  • Updated dependencies [3a0c367]
  • Updated dependencies [89a2cc7]
  • Updated dependencies [e461e5b]

1.25.54

Patch Changes

1.25.53

Patch Changes

  • fb798c8: chore: make OpenAPI document URLs the default, deprecated content
  • cf4e9c4: fix(components): resize and scroll scalar listbox and dropdown
  • 6108625: feat: adds disclosure button on enum values
  • cfe9b85: fix: added safe parsing for oauth examples
  • 6599473: fix: arrays with allOf items render invalid examples
  • bb3dc9d: fix(api-reference): improve endpoint and tag accessibility
  • 0e19781: feat: fix reactivitiy of references + client
  • ac0f8f1: fix: fixtures schema properties margin
  • Updated dependencies [fb798c8]
  • Updated dependencies [cf4e9c4]
  • Updated dependencies [3bec045]
  • Updated dependencies [743474e]
  • Updated dependencies [743474e]
  • Updated dependencies [cfe9b85]
  • Updated dependencies [0fb3a41]
  • Updated dependencies [417e0c7]
  • Updated dependencies [4d45f7b]
  • Updated dependencies [6599473]
  • Updated dependencies [bb3dc9d]
  • Updated dependencies [0e19781]

1.25.52

Patch Changes

1.25.51

Patch Changes

1.25.50

Patch Changes

1.25.49

Patch Changes

1.25.48

Patch Changes

1.25.47

Patch Changes

  • 70846c1: style(api-reference): required stringe orange color
  • 3e2b1e1: style: updates authentication form radiuses
  • Updated dependencies [4ccbb6b]
  • Updated dependencies [85a1815]
  • Updated dependencies [a12857f]
  • Updated dependencies [b500de2]
  • Updated dependencies [294fde8]
  • Updated dependencies [0706bc4]
  • Updated dependencies [86a3a82]
  • Updated dependencies [48afb7c]

1.25.46

Patch Changes

1.25.45

Patch Changes

1.25.44

Patch Changes

1.25.43

Patch Changes

1.25.42

Patch Changes

1.25.41

Patch Changes

  • a80a931: fix: command palette modal overflow
  • Updated dependencies [8223e31]
  • Updated dependencies [f8b81ee]
  • Updated dependencies [9e769df]
  • Updated dependencies [a80a931]

1.25.40

Patch Changes

1.25.39

Patch Changes

1.25.38

Patch Changes

1.25.37

Patch Changes

1.25.36

1.25.35

Patch Changes

1.25.34

Patch Changes

1.25.33

Patch Changes

1.25.32

Patch Changes

1.25.31

Patch Changes

  • Updated dependencies [8396e92]
  • Updated dependencies [6279c59]
  • Updated dependencies [5581a28]

1.25.30

Patch Changes

1.25.29

Patch Changes

1.25.28

Patch Changes

  • Updated dependencies [dea7b57]
  • Updated dependencies [008eca4]
  • Updated dependencies [9ba2c9f]

1.25.27

Patch Changes

  • Updated dependencies [cebca7a]
  • Updated dependencies [3b12248]
  • Updated dependencies [a78b0a6]

1.25.26

Patch Changes

1.25.25

Patch Changes

1.25.24

Patch Changes

1.25.23

Patch Changes

  • e4b326e: feat: support for multiple examples in schemas
  • 963b9cd: fix: removed global listeners to prevent random jumping bug
  • cd8ba1c: feat: added setting of initial security schemes in the client
  • e4b326e: fix(api-reference): show examples in models section
  • Updated dependencies [963b9cd]
  • Updated dependencies [cd8ba1c]
  • Updated dependencies [8b6633d]
  • Updated dependencies [fb0d9a3]

1.25.22

Patch Changes

1.25.21

Patch Changes

  • ba40c63: fix: css missing comma

1.25.20

1.25.19

Patch Changes

1.25.18

Patch Changes

1.25.17

Patch Changes

1.25.16

Patch Changes

1.25.15

Patch Changes

1.25.14

Patch Changes

1.25.13

Patch Changes

  • 9486091: fix: respect the proxy url config
  • Updated dependencies [9351a90]
  • Updated dependencies [9486091]

1.25.12

Patch Changes

  • 099233d: fix: request example code works for some examples only
  • 9d88423: feat: added one way auth sync from references to client
  • e15b021: feat: render deeply nested schemas, but not circular references
  • Updated dependencies [b8fdc19]
  • Updated dependencies [18c58af]
  • Updated dependencies [dd06d00]
  • Updated dependencies [7e5dfbb]
  • Updated dependencies [641c1ec]
  • Updated dependencies [b8fdc19]
  • Updated dependencies [9d88423]
  • Updated dependencies [88a4ec3]
  • Updated dependencies [674922f]
  • Updated dependencies [86e1f46]
  • Updated dependencies [44f3300]
  • Updated dependencies [7df5770]
  • Updated dependencies [a08aa37]
  • Updated dependencies [e15b021]
  • Updated dependencies [9269f5a]
  • Updated dependencies [73f728e]
  • Updated dependencies [ee22a82]
  • Updated dependencies [b8fdc19]
  • Updated dependencies [a002783]
  • Updated dependencies [9cd23e3]
  • Updated dependencies [c030024]
  • Updated dependencies [6fd83dc]
  • Updated dependencies [121bc7e]

1.25.11

Patch Changes

1.25.10

Patch Changes

  • f8920be: fix: hide test icon in operation accordion
  • a07cfc8: feat: allow to hide the Test Request button
  • 1e41dfe: fix: adds endpoints description collapse state
  • 7d988b6: fix: anchor models and webhooks offset
  • 023ca15: feat: adds favicon configuration
  • 85872b6: feat: allow to hide search sidebar
  • ad89ca3: fix: autprefixer warnings
  • Updated dependencies [a07cfc8]
  • Updated dependencies [5483fc3]
  • Updated dependencies [1e41dfe]
  • Updated dependencies [023ca15]
  • Updated dependencies [85872b6]
  • Updated dependencies [ad89ca3]

1.25.9

Patch Changes

1.25.8

Patch Changes

  • 7595fc5: chore: migrate @scalar/snippetz to scalar/scalar
  • 18744d4: feat(api-reference): lazy loading collapsible webhooks
  • e67f5a8: chore(api-client): removed axios dependency
  • 725dfa0: feat: download from OpenAPI document URL (if available)
  • fdd6d16: fix: authentication form submits on enter
  • Updated dependencies [b4f9f97]
  • Updated dependencies [7595fc5]
  • Updated dependencies [0afb293]
  • Updated dependencies [4b52f29]
  • Updated dependencies [294ba08]
  • Updated dependencies [b4f9f97]
  • Updated dependencies [18744d4]
  • Updated dependencies [e67f5a8]
  • Updated dependencies [b4f9f97]
  • Updated dependencies [044fd7d]
  • Updated dependencies [b4f9f97]
  • Updated dependencies [b63be39]
  • Updated dependencies [b231e7d]
  • Updated dependencies [152c016]
  • Updated dependencies [b4f9f97]

1.25.7

Patch Changes

1.25.6

Patch Changes

1.25.5

Patch Changes

1.25.4

Patch Changes

1.25.3

Patch Changes

1.25.2

Patch Changes

1.25.1

Patch Changes

1.25.0

Minor Changes

  • 78db8f5: feat: move some of the types to the new @scalar/types package

Patch Changes

1.24.77

Patch Changes

1.24.76

Patch Changes

1.24.75

Patch Changes

1.24.74

Patch Changes

1.24.73

Patch Changes

  • 58e5912: fix: markdown fixes and intro card polish
  • Updated dependencies [db96313]
  • Updated dependencies [de9747c]
  • Updated dependencies [8672a78]
  • Updated dependencies [58e5912]
  • Updated dependencies [6f7ab8d]
  • Updated dependencies [db96313]
  • Updated dependencies [89ee9da]
  • Updated dependencies [078ca72]
  • Updated dependencies [6f107e1]
  • Updated dependencies [520caff]
  • Updated dependencies [03e9bbb]
  • Updated dependencies [db96313]

1.24.72

Patch Changes

1.24.71

Patch Changes

1.24.70

Patch Changes

1.24.69

Patch Changes

1.24.68

Patch Changes

1.24.67

Patch Changes

1.24.66

Patch Changes

1.24.65

Patch Changes

1.24.64

Patch Changes

1.24.63

Patch Changes

1.24.62

Patch Changes

1.24.61

Patch Changes

1.24.60

Patch Changes

1.24.59

Patch Changes

1.24.58

Patch Changes

  • 81b330e: feat: limit search results to 25, improve search modal performance
  • 201b661: feat: log some performance metrics
  • 0bea5b6: fix: window.matchMedia is not a function
  • Updated dependencies [ce3f630]
  • Updated dependencies [b2a662a]
  • Updated dependencies [86014b5]
  • Updated dependencies [d88c403]
  • Updated dependencies [a60c916]
  • Updated dependencies [0bea5b6]
  • Updated dependencies [2c61c21]
  • Updated dependencies [19a50de]

1.24.57

Patch Changes

1.24.56

Patch Changes

1.24.55

Patch Changes

1.24.54

Patch Changes

1.24.53

Patch Changes

  • Updated dependencies [23d498b]
  • Updated dependencies [624696e]
  • Updated dependencies [41341e9]
  • Updated dependencies [5402338]
  • Updated dependencies [33f5a09]
  • Updated dependencies [9f4db12]
  • Updated dependencies [aee3783]
  • Updated dependencies [9ca5d7d]
  • Updated dependencies [d97bffd]

1.24.52

Patch Changes

  • 5ebcee3: chore(api-references): use thickness instead of css overrides
  • Updated dependencies [19d8b6a]
  • Updated dependencies [c112f24]
  • Updated dependencies [83fc241]
  • Updated dependencies [2e1ef12]

1.24.51

Patch Changes

1.24.50

Patch Changes

1.24.49

Patch Changes

  • d894fb7: feat: configure the defaultHttpClient
  • cf92fab: fix: set background color on body

1.24.48

Patch Changes

1.24.47

Patch Changes

1.24.46

Patch Changes

1.24.45

Patch Changes

1.24.44

Patch Changes

1.24.43

Patch Changes

1.24.42

Patch Changes

  • 274af41: fix: make default tag check computed for reactivity bugs
  • Updated dependencies [8654323]

1.24.41

Patch Changes

  • Updated dependencies [91b97fa]
  • Updated dependencies [05bc858]
  • Updated dependencies [05bc858]

1.24.40

Patch Changes

  • e285a6b: fix: scalar code block copy
  • 4023d52: fix: response example duplication
  • 2f10a39: fix: dark mode icon
  • c2ac68a: fix: long base url
  • fc096b6: refactor!: rename createScalarApiClient to createApiClientModal
  • 1961751: fix: update classic theme section accordian icons
  • Updated dependencies [a5b295c]
  • Updated dependencies [e285a6b]
  • Updated dependencies [bff602a]
  • Updated dependencies [6f4d20d]
  • Updated dependencies [1ba4267]
  • Updated dependencies [2f10a39]
  • Updated dependencies [58da2c6]
  • Updated dependencies [2f10a39]
  • Updated dependencies [9e3348a]
  • Updated dependencies [fe16789]
  • Updated dependencies [fc096b6]
  • Updated dependencies [ebdc9cf]

1.24.39

Patch Changes

  • 0ac627d: fix: no rendering of fonts
  • 9840fdd: fix: vertical align server url

1.24.38

Patch Changes

1.24.37

Patch Changes

1.24.36

Patch Changes

1.24.35

Patch Changes

1.24.34

Patch Changes

1.24.33

Patch Changes

1.24.32

Patch Changes

1.24.31

Patch Changes

1.24.30

Patch Changes

1.24.29

Patch Changes

  • ebf1ee9: fix: removed api-reference forced reliance on Style tag injection to fix nuxt/SSR
  • 613def2: fix(#2352): move css imports into style tag
  • Updated dependencies [d6a2a4d]
  • Updated dependencies [4385ae2]
  • Updated dependencies [632d6f7]
  • Updated dependencies [a5aedf5]
  • Updated dependencies [a5aedf5]
  • Updated dependencies [d6a2a4d]
  • Updated dependencies [cd5d1a4]

1.24.28

Patch Changes

1.24.27

Patch Changes

1.24.26

Patch Changes

1.24.25

Patch Changes

  • 429e928: feat: watch spec and update
  • Updated dependencies [209a7e1]
  • Updated dependencies [429e928]
  • Updated dependencies [3ba80b9]

1.24.24

Patch Changes

1.24.23

Patch Changes

  • b87617c: fix: configured servers list is ignored
  • 975e555: fix: api reference sidebar method font weight
  • 646dab2: chore: don’t expose useApiClientStore anymore
  • 7f4d22e: refactor: new redirectToProxy helper
  • a32f137: refactor: add HttpMethod component
  • Updated dependencies [bd67d8f]
  • Updated dependencies [7f4d22e]

1.24.22

Patch Changes

1.24.21

Patch Changes

  • cefe804: refactor: server feature
  • 4861362: chore: merge modal package into client-app
  • cefe804: style: use @scalar/components dropdown for the base url
  • 4126c40: style: no dropdown for a single server
  • Updated dependencies [e1af8ed]
  • Updated dependencies [fec6f8e]
  • Updated dependencies [cefe804]
  • Updated dependencies [4861362]
  • Updated dependencies [cefe804]
  • Updated dependencies [fec6f8e]
  • Updated dependencies [de13666]
  • Updated dependencies [d0aec62]
  • Updated dependencies [2c0bd57]

1.24.20

Patch Changes

1.24.19

Patch Changes

1.24.18

Patch Changes

1.24.17

Patch Changes

1.24.16

Patch Changes

1.24.15

Patch Changes

  • d7a011a: fix: configuration metaData isn’t used
  • 40d7c3d: fix: remove layers in docusaurus and fix precedence issue

1.24.14

Patch Changes

  • fb9baa5: fix: doesn’t show webhooks when x-tagGroups is used
  • Updated dependencies [b1fd179]

1.24.13

Patch Changes

1.24.12

Patch Changes

  • bcbcfc5: fix: standalone always defaults to light mode

1.24.11

Patch Changes

1.24.10

Patch Changes

1.24.9

Patch Changes

1.24.8

Patch Changes

1.24.7

Patch Changes

  • 43f0d4b: fix: Remove terser for now standalone

1.24.6

Patch Changes

1.24.5

Patch Changes

  • ee584b9: feat: add base server override

1.24.4

Patch Changes

1.24.3

Patch Changes

1.24.0

Minor Changes

  • 7f8ef74: chore: remove aliasing

Patch Changes

  • 689677a: fix: auto importing css backup
  • 326dcfb: chore: remove @scalar/use-modal package
  • b4db5da: fix: different response examples for different status codes
  • d54eb42: fix: pathRouting when only using a slash in references and nux
  • 68eede9: fix: ensure there's no padding on the response tabs
  • 96347a1: feat: use example values for path variables
  • 8494349: Migrate to highlightjs based syntax highlighting
  • b38c7ed: Update build configs to a standardized format
  • 6fbb57e: feat: release all the packages
  • 6d11a8a: fix: default example response is moved to the first position
  • Updated dependencies [1de697b]
  • Updated dependencies [190bcb6]
  • Updated dependencies [7f8ef74]
  • Updated dependencies [689677a]
  • Updated dependencies [f82a767]
  • Updated dependencies [326dcfb]
  • Updated dependencies [96347a1]
  • Updated dependencies [8494349]
  • Updated dependencies [b38c7ed]
  • Updated dependencies [6fbb57e]
  • Updated dependencies [e63b12d]
  • Updated dependencies [94084bf]
  • Updated dependencies [c5760b9]

1.23.5

Patch Changes

1.23.4

Patch Changes

1.23.3

Patch Changes

1.23.2

Patch Changes

  • 3619881: fix: remove console log in use nav state

1.23.1

Patch Changes

1.23.0

Minor Changes

  • 7d3bc16: feat: css files must be explicitly imported, check the docs
  • 7d3bc16: BREAKING CHANGE: css must now be explicitly imported, see docs for more details

Patch Changes

1.22.56

Patch Changes

  • 6c870da: fix: style x-enums

1.22.55

Patch Changes

1.22.54

Patch Changes

1.22.53

Patch Changes

  • 5a9c298: feat: move references css config to css layer
  • cad7eef: fix: small images destroy the layout
  • Updated dependencies [d60cc10]

1.22.52

Patch Changes

  • 4bc33db: feat: support for constants in schemas
  • 30953fa: Add scalar galaxy yaml export and improve React reference reactivity
  • Updated dependencies [da7cdb6]

1.22.51

Patch Changes

1.22.50

Patch Changes

1.22.49

Patch Changes

1.22.48

Patch Changes

  • 37471ee: fix: indentation bug on groups

1.22.47

Patch Changes

1.22.46

Patch Changes

  • 594ac4e: fix: useReactiveSpec does not rewrite old proxy url

1.22.45

Patch Changes

1.22.44

Patch Changes

  • 496bca4: fix: api client selector responsive
  • f677ff5: feat: favor uppercase css style for sidebar heading
  • 28c8dc5: fix: server url with variable is overwritten with current url
  • Updated dependencies [dfe51b1]
  • Updated dependencies [504ff7a]
  • Updated dependencies [61b8ddc]
  • Updated dependencies [165b901]
  • Updated dependencies [925572f]

1.22.43

Patch Changes

1.22.42

Patch Changes

  • a1cbb21: fix: client selector style

1.22.41

Patch Changes

1.22.40

Patch Changes

1.22.39

Patch Changes

  • 1305f28: fix: client blur popup
  • 4ba9fed: fix: blurry api client popup
  • bf35da5: fix: x-displayName is not used in the tag component
  • ab5d017: refactor: use lowlight instead of prism in the markdown component (rollback 64024a5)
  • 484bd33: feat: show text/plain example responses, too
  • bf35da5: fix: x-displayName is not used in the search modal

1.22.38

Patch Changes

  • 64cc35f: fix: x-displayName & x-tagGroups cancel eachother out

1.22.37

Patch Changes

1.22.36

Patch Changes

  • 79e3caa: chore: replace petstore example with galaxy example
  • 5d0e06c: fix: api client blur, modal size, client contrast with clickout area
  • c6ee654: feat: hide operations with x-internal: true
  • Updated dependencies [79e3caa]
  • Updated dependencies [e022ee6]

1.22.35

Patch Changes

1.22.34

Patch Changes

  • 15625a2: feat: support tag in markdown

1.22.33

Patch Changes

1.22.32

Patch Changes

1.22.31

Patch Changes

  • 3748dc5: feat: api client toggle sidebar hotkey
  • Updated dependencies [f871c28]
  • Updated dependencies [3748dc5]

1.22.30

Patch Changes

1.22.29

Patch Changes

1.22.28

Patch Changes

  • 192f348: feat: ship test button

1.22.27

Patch Changes

  • ce44360: fix: support markdown tag
  • 7622134: fix: uppercase required property

1.22.26

Patch Changes

1.22.25

Patch Changes

  • 5b24896: fix: sidebar doesn’t react to changes
  • 64024a5: refactor: use prismjs instead of highlightjs in the markdown component
  • 36e1e66: feat: include spec title in downloaded spec filename
  • 2e7b074: feat: clean up toast styles and colors
  • 298735f: fix: hide default caret on <summary> on Safari
  • Updated dependencies [d649691]
  • Updated dependencies [2e7b074]

1.22.24

Patch Changes

1.22.23

Patch Changes

1.22.22

Patch Changes

1.22.21

Patch Changes

1.22.20

Patch Changes

  • a8c3045: build: re-introduce @scalar/use-toasts package
  • 1324378: feat: show two levels of headings in the sidebar
  • 9201802: chore: update example page title
  • Updated dependencies [c6e4385]
  • Updated dependencies [a8c3045]

1.22.19

Patch Changes

1.22.18

Patch Changes

  • 45dccb0: fix: avoid prepending path when running standalone from an html file without a server
  • abff1f4: fix: swagger 2.0 definitions don’t show up in list of models

1.22.17

Patch Changes

  • b42479c: fix: unused empty tags break the sidebar
  • 4c38ac1: fix: add label value in changeTheme event
  • Updated dependencies [53ba90d]

1.22.16

Patch Changes

  • 7e1d318: fix: addtional properties duplicate description

1.22.15

Patch Changes

1.22.14

Patch Changes

1.22.13

Patch Changes

1.22.12

Patch Changes

1.22.11

Patch Changes

1.22.10

Patch Changes

1.22.9

Patch Changes

1.22.8

Patch Changes

1.22.7

Patch Changes

  • c408cf5: style: getting started integrations + themes

1.22.6

Patch Changes

  • cf12a95: fix: sidebar models collapse
  • 7b37c63: fix: start section theme name

1.22.5

Patch Changes

  • d03ab0f: feat: add better support for additional properties

1.22.4

Patch Changes

  • adc0693: feat: use http as default scheme for Swagger 2.0 specifications

1.22.3

Patch Changes

1.22.2

Patch Changes

1.22.1

Patch Changes

  • 8dc1640: feat: moved toast component to client only

1.22.0

Minor Changes

  • 0e64a36: refactor: rename all --theme-_ variables to --scalar-_

Patch Changes

1.21.2

Patch Changes

  • 851017a: fix: give explicit URL to href in search modal

1.21.1

Patch Changes

  • b4abb34: fix: object description markdown

1.20.32

Patch Changes

  • 51d4997: fix: sidebar heading type remove hover color

1.20.31

Patch Changes

  • b903a2f: fix: intersection observer detection

1.20.30

Patch Changes

1.20.29

Patch Changes

1.20.28

Patch Changes

  • 622f31b: fix: endpoint navigation
  • f2c2ce8: fix: decode uri component when setting hash values from url

1.20.27

Patch Changes

  • 605f522: feat: support tags with no operations

1.20.26

Patch Changes

  • 050410a: feat: add config to hide download button

1.20.25

Patch Changes

  • 1504d3b: feat: add config to hide models

1.20.24

Patch Changes

  • ab58747: fix: decrease border radius on code language background element

1.20.23

Patch Changes

1.20.22

Patch Changes

  • 4089634: feat: support x-displayName tag extension

1.20.21

Patch Changes

1.20.20

Patch Changes

1.20.18

Patch Changes

  • c99f6ff: fix: create url for sidebar links using constructor

1.20.17

Patch Changes

  • 5b4c8a5: fix: left align read only

1.20.16

Patch Changes

  • 5232eab: fix: use function for displaying description in schema property component

1.20.15

Patch Changes

  • 8f03345: fix: update only the hash on scroll

1.20.14

Patch Changes

  • 78f2ab3: fix: set global security on sidebar navigation

1.20.13

Patch Changes

1.20.12

Patch Changes

  • 999dfc9: chore: moved sidemenu control to css
  • fd5c714: feat: add authentication UI to the API client
  • 5c1b385: fix: improper variables name + remove importants
  • 5f5395f: fix: toast notification doesn't show up
  • Updated dependencies [999dfc9]

1.20.11

Patch Changes

1.20.10

Patch Changes

1.20.9

Patch Changes

1.20.8

Patch Changes

1.20.7

Patch Changes

  • 1e658b0: fix: rebuild schema property details to truncate long strings
  • 06c57ca: fix: buffer not available in browser environments
  • Updated dependencies [06c57ca]

1.20.6

Patch Changes

1.20.5

Patch Changes

1.20.4

Patch Changes

1.20.3

Patch Changes

1.20.2

Patch Changes

  • 9fe930c: fix: allow examples to be multiline

1.20.1

Patch Changes

  • 4b5a136: fix: move theme flare behind all content
  • 1fb2eac: fix: use scroll margin instead of padding to align scroll headers
  • 01476a9: feat: improve nullable types in schemas
  • 083e0a1: style: improve text in markdown tables

1.20.0

Minor Changes

  • 31aae5e: chore: moved shared types and methods into oas-utils

Patch Changes

  • 6dc67c1: fix: example requestBody isn’t shown in the api client
  • c4500f6: chore: remove @scalar/swagger-editor as a dependency
  • 41f0d86: fix: example for object with anyOf, allOf, oneOf schemas doesn’t have a value
  • Updated dependencies [31aae5e]

1.19.7

Patch Changes

  • 63deb4f: fix: enum under items is not being displayed

1.19.6

Patch Changes

1.19.5

Patch Changes

  • 00abdc5: chore: remove body margin reset everywhere, it’s not needed anymore
  • e520363: feat: added oauth2 implicit login flow

1.19.4

Patch Changes

  • c987a90: fix: add min height to classic layout

1.19.3

Patch Changes

1.19.2

Patch Changes

1.19.1

Patch Changes

  • 148966b: fix: move errors into warning from new parser

1.19.0

Minor Changes

  • 7fb8273: Migrate to @scalar/openapi-parser

Patch Changes

1.18.7

Patch Changes

1.18.6

Patch Changes

  • c1410e7: fix: render missing schema properties (minimum, maximum and default values)

1.18.5

Patch Changes

  • 5cf4afa: style: replace resize observer with css container queries

1.18.4

Patch Changes

1.18.3

Patch Changes

  • 5ffe3b6: fix: duplicate border top
  • bc9f965: fix: add deprecated path to classic layout

1.18.2

Patch Changes

1.18.1

Patch Changes

1.18.0

Minor Changes

  • ad2b95a: fix: scope scrollbar styles
  • ad2b95a: refactor: move reset component to themes package

Patch Changes

1.17.16

Patch Changes

  • f39516c: chore: remove preparsed content
  • 8b2558a: fix: custom operation security scheme is ignored
  • ad80db9: fix: content not reactive
  • 2e9218f: fix: deprecated operations are not striked through in the sidebar

1.17.15

Patch Changes

1.17.14

Patch Changes

  • fd0af3c: fix: mobile header button

1.17.13

Patch Changes

1.17.12

Patch Changes

1.17.11

Patch Changes

1.17.10

Patch Changes

1.17.9

Patch Changes

1.17.8

Patch Changes

1.17.7

Patch Changes

1.17.4

Patch Changes

1.17.3

Patch Changes

1.17.2

Patch Changes

1.17.1

Patch Changes

1.17.0

Minor Changes

  • cd3068a: feat: switch syntax highlighting dependency from codemirror to prismjs

1.16.3

Patch Changes

1.16.2

Patch Changes

  • 4fb6af9: chore: remove use-keyboard-event package
  • dc7b97c: fix: resize classic intro cards for difference screen sizes
  • Updated dependencies [4fb6af9]

1.16.1

Patch Changes

  • 997568b: fix: wrapping of url on request snippet url

1.16.0

Minor Changes

  • e0faebb: feat: add show more button to request variables and path params

Patch Changes

1.15.6

Patch Changes

  • 27a9e708: fix: remove type="text" from the search button placeholder span

1.15.5

Patch Changes

1.15.4

Patch Changes

  • 15738a16: fix: set custom scroll on container for endpoints overview
  • Updated dependencies [037029cc]

1.15.3

Patch Changes

1.15.2

Patch Changes

1.15.1

Patch Changes

1.15.0

Minor Changes

  • 612431b4: Migrate model logic from codemirror component to hook
  • 26340b12: feat: update components to support all basic http request methods

Patch Changes

1.14.10

Patch Changes

  • a963f10e: fix: shrink label and not actions on mobile
  • 4db085f4: feat: use provided examples for the request and the response
  • d1c085a0: fix: only open models sidebar section on scroll

1.14.9

Patch Changes

  • 2f7ce4d8: feat: improve model look and feel

1.14.8

Patch Changes

  • d7dbba87: fix: css reset on markdown details summary

1.14.7

Patch Changes

  • ba5b70ce: feat: collapse all subschemas by default

1.14.6

Patch Changes

  • 04c0bd9b: feat: details/summary tags in markdown
  • 569c104f: fix: swagger 2.0 response body isn’t shown
  • Updated dependencies [04c0bd9b]

1.14.5

Patch Changes

1.14.4

Patch Changes

1.14.3

Patch Changes

  • e9eefff4: feat: improve custom example block with try request button, path and improved select
  • Updated dependencies [dccb83ab]

1.14.2

Patch Changes

  • 6caef07c: fix: response examples with a single value don’t render

1.14.1

Patch Changes

  • eb4faf8c: fix: search input has autocomplete enabled

1.14.0

Minor Changes

  • a244b049: Fix markdown table alignment

1.13.19

Patch Changes

1.13.18

Patch Changes

  • b4f66f0b: fix: example spec not loading on mobile

1.13.17

Patch Changes

  • 8ffea2ae: feat: better schema support for params
  • e073b015: fix: allow response to scroll horizontally

1.13.16

Patch Changes

  • fcb2b75b: fix: text in method badges wraps for PATCH operations
  • 8e7fcfa0: chore: improve types

1.13.15

Patch Changes

  • 706b29f2: feat: render images in the description
  • d8fc0544: feat: add support for x-custom-examples (custom request examples)
  • 55e74b08: feat: show nullable properties
  • 8573da8d: feat: use schema examples

1.13.14

Patch Changes

1.13.13

Patch Changes

  • 7e0ca478: fix: Restoring missing forward slash between URL and API routes
  • 9ca25eda: fix: additionalProperties: false is ignored
  • e5354121: fix: better deal with incomplete schemas

1.13.12

Patch Changes

  • 2c7e0b5c: feat: show webhooks
  • c3186f9e: feat: show security schema key and description
  • Updated dependencies [2c7e0b5c]

1.13.11

Patch Changes

  • 57f899f2: fix: search keyboard navigation doesn’t work when the mouse hovers the results
  • cb4093f2: feat: show additionalProperties in example requests/responses and in Models

1.13.10

Patch Changes

1.13.9

Patch Changes

  • cb45bb13: feat: scroll search selected item into view with keyboard nav
  • e87a2474: fix: enter key navigating search item

1.13.7

Patch Changes

1.13.6

Patch Changes

  • b53b28c1: fix: toggle icon does not toggle
  • 460e25c0: feat: show/hide readOnly and writeOnly attributes in requests/responses

1.13.5

Patch Changes

1.13.4

Patch Changes

1.13.3

Patch Changes

1.13.2

Patch Changes

1.13.1

Patch Changes

  • 20790661: feat: add space themes

1.13.0

Minor Changes

  • 97cd84e9: feat: client ignore list

Patch Changes

  • 5dac9c51: fix: open section on search result click
  • 0e0f34b3: fix: cleanup safari bugs
  • 7582e82a: fix: classic layout stylings
  • Updated dependencies [0e0f34b3]

1.12.9

Patch Changes

1.12.8

Patch Changes

  • 859977f8: feat: Add dynamic content type selection for request body

1.12.7

Patch Changes

  • 0b66933d: fix: declare theme font for buttons and fix regressed font weight
  • Updated dependencies [0b66933d]

1.12.6

Patch Changes

  • 87ed7f01: fix: markdown second level margin issue

1.12.5

Patch Changes

  • 4513c725: feat: add intro flare for gradients

1.12.4

Patch Changes

1.12.3

Patch Changes

1.12.2

Patch Changes

  • 0f9791b7: fix: add null check to cookies and proper withCredentials set on cookie addition
  • Updated dependencies [0f9791b7]

1.12.1

Patch Changes

  • 54be5027: fix: make fuse data reactive
  • 6c4d608f: refactor: scope all sidebar styles

1.12.0

Minor Changes

  • 1c4f4c88: feat: classic layout polish

Patch Changes

1.11.1

Patch Changes

  • 855a6713: fix: remove caching of configuration when updating spec as prop
  • 5f270ca4: chore: export stores and helpers
  • 6cbb5a65: refactor: use Schema component to render parameters and response body

1.11.0

Minor Changes

  • 1972947f: chore: removed yjs and hocus pocus from swagger editor

Patch Changes

  • e99eb215: fix: align mobile navigation to header
  • cf30daa2: fix: add JSON.stringify to undici body
  • 4b28e96c: style: add position sticky to endpoints overview
  • Updated dependencies [1972947f]

1.10.2

Patch Changes

  • 70f33ea2: fix: references mobile menu position relative bug

1.10.1

Patch Changes

  • 01afd152: fix: sidebar on mobile doesnt close once changing active item

1.10.0

Minor Changes

  • f2a7a214: feat: remove border from introduction card headings

Patch Changes

1.9.2

Patch Changes

  • 648e5a98: chore: don’t add optional parameters to the client

1.9.1

Patch Changes

  • edb02e76: fix: windows select menu not updating on prefers color scheme
  • Updated dependencies [edb02e76]

1.9.0

Minor Changes

  • c45ae5e8: feat: add accordion layout for schema models

Patch Changes

  • d7da3147: fix: remove duplicate slash in example and client

1.8.0

Minor Changes

  • f9bfa97: feat: add buttons to header for classic layout

Patch Changes

1.7.1

Patch Changes

  • 4423876: chore: make Axios the default client for Node.js
  • 4423876: chore: remove unirest and node-fetch from the client lists

1.7.0

Minor Changes

  • 4f2fcc3: feat: classic layout content

Patch Changes

1.6.1

Patch Changes

  • f87910d: feat: prefill path, header, cookie, query parameters from the spec
  • Updated dependencies [f87910d]

1.6.0

Minor Changes

  • c04c2ea: feat: show references sidebar slot content in api client sidebar

Patch Changes

  • 90ffeb5: refactor: extract layout type into component
  • 98e01a2: fix: prevent css leakage from references reset
  • 654333a: fix: oneOf rules for arrays are ignored
  • 84c0c77: chore: change Download OpenAPI Spec button text
  • 4e5d00e: style: visualize deprecated operations
  • Updated dependencies [98e01a2]
  • Updated dependencies [c04c2ea]

1.5.0

Minor Changes

  • f38bb61: chore: remove swagger editor tabs

Patch Changes

1.4.0

Minor Changes

  • b974eeb: feat: swagger UI style layout

Patch Changes

  • b65840b: refactor: keep track of the collapsed sidebar items in @scalar/api-reference
  • 95fbc01: fix: hono middleware fails to read configuration.spec.content
  • b65840b: fix: URL doesn’t match the active sidebar item
  • Updated dependencies [b65840b]

1.3.0

Minor Changes

  • 37b974c: feat: expose footer slot on standalone component

Patch Changes

  • b77d087: feat: add a customCss property to the configuration object

1.2.7

Patch Changes

1.2.6

Patch Changes

1.2.5

Patch Changes

1.2.4

Patch Changes

1.2.3

Patch Changes

1.2.2

Patch Changes

  • 81490fb: feat: pass global parameters and parameters to the api client
  • 18bb6a4: fix: offset sections by header height for scrolling

1.2.1

Patch Changes

  • fa34e17: fix: set search modal variant
  • 9e6cc67: fix: don't handle search shortcut if component is deactivated

1.2.0

Minor Changes

  • edb09a0: refactor: expose slot props for reference base component

Patch Changes

  • 678e383: fix: no authentication shouldn’t render an empty form
  • c51124f: feat: add anchors to headings

1.1.7

Patch Changes

1.1.6

Patch Changes

  • 36761e4: feat: make the available tabs configurable
  • Updated dependencies [8e65ba9]
  • Updated dependencies [36761e4]

1.1.5

Patch Changes

1.1.4

Patch Changes

  • 752dcf3: feat: add support for models with top level anyOf, allOf, oneOf …
  • Updated dependencies [a1575f2]

1.1.3

Patch Changes

  • 75df2d2: feat: use bearer auth as the fallback for http auth
  • c97e8e6: chore: add form tag to auth credentials
  • 52c20e5: style: no text transform for model names
  • b1fe23c: feat: add support for oneOf in response schemas feat: add support for allOf in response schemas
  • 1208a7f: feat: add support for Swagger 2.0 host and schemes configuration
  • Updated dependencies [3d6027c]

1.1.2

Patch Changes

  • d062fd9: fix: deep linking in api references

1.1.1

Patch Changes

  • 5eb5dcf: refactor: bring back footer slot

1.1.0

Minor Changes

  • 77dce14: refactor(references)!: remove deprecated component props refactor(references): extract references code into base component feat(references): expose new props for references base component

Patch Changes

  • d3205e5: feat: support request bodies with other mime types than JSON
  • aa2a575: fix: cards overlapping header
  • Updated dependencies [801f1b5]

1.0.6

Patch Changes

  • 366b142: fix: ignore proxy when swagger spec is a path
  • e1dc955: fix: add fallback to name for models if no xml attribute passed
  • Updated dependencies [ceb7952]

1.0.5

Patch Changes

  • ff81f70: refactor: move getting started example to GettingStarted component
  • 5da1fc6: security: update axios from 1.5.0 to 1.6.1
  • ff81f70: fix: don’t overwrite the CodeMirror content when collaborative editing is enabled
  • Updated dependencies [ff81f70]
  • Updated dependencies [5da1fc6]
  • Updated dependencies [ff81f70]

1.0.4

Patch Changes

  • 7fb2302: feat: detect variables in URLs
  • 54098d7: chore: better fallbacks for the operation.name
  • dd06807: fix: optional chain for request bodies
  • 551aa7d: fix: mobile sidebar always open by default
  • 7fb2302: fix: show server variables for single URLs too
  • 3eff44f: fix: show description component only when a description is specified
  • f0dca6c: fix: add fallback if no summary or key is provided for examples
  • Updated dependencies [54098d7]
  • Updated dependencies [7fb2302]

1.0.3

Patch Changes

1.0.2

Patch Changes

  • a7e6c25: fix: externalize remark/rehype dependencies to fix SSG builds
  • 4253b4a: fix: move footer below sidebar and editor when toggled
  • Updated dependencies [a7e6c25]

1.0.1

Patch Changes

  • 68edf8c: feat: add oas version and spec version to title
  • e482ce0: fix: don’t overwrite the content if there is nothing configured
  • 6af9829: refactor: add a ApiReferenceLayout component to offer slots for everything
  • 6bdc65b: Exported ApiReferenceLayout as separate component

1.0.0

Minor Changes

  • 440815a: Add getting started to empty render area

Patch Changes

  • 94d2fe4: fix: don’t show a security scheme select when there is only one
  • b0835a2: users not using themed css fallbacks
  • c470db5: make --theme priority over --default-theme in misc places
  • 5243ae4: make search modal hotkey configurable
  • 509db1e: refactor: move all api reference refs and watchers to hooks
  • Updated dependencies [b0835a2]
  • Updated dependencies [440815a]
  • Updated dependencies [c470db5]
  • Updated dependencies [da431d9]
  • Updated dependencies [3c6f54f]
  • Updated dependencies [509db1e]
  • Updated dependencies [a4f1b08]

0.8.10

Patch Changes

  • 8c15df74: remove extra borders + fix spacing when only 1 server child

0.8.9

Patch Changes

  • 9c7a5722: feat: make the server selectable feat: add inputs for server variables feat: pass configured server environment to example requests feat: pass configured server environment to the api client refactor: new helpers to generate the request data for the example request and the client
  • a5df4a5b: fix: don’t show generated example responses if there’s an example
  • Updated dependencies [9c7a5722]

0.8.8

Patch Changes

0.8.7

Patch Changes

0.8.6

Patch Changes

  • c75b13b1: hotfix: load the swagger editor even if it’s not used

0.8.5

Patch Changes

  • 2f0b2f01: fix: add deprecated footerBelowSidebar again (use configuration object instead)
  • 2f0b2f01: feat: add download spec button
  • 2f0b2f01: refactor: improve the data flow between the reference and the swagger editor
  • 2f0b2f01: refactor: move json helpers to separate files
  • Updated dependencies [2f0b2f01]
  • Updated dependencies [2f0b2f01]

0.8.4

Patch Changes

0.8.3

Patch Changes

0.8.2

Patch Changes

  • 3b042270: fix: active state for operations with multiple tags
  • 4685f391: feat: introducing the new universal configuration object
  • 8ac1ad69: chore: use different heading levels
  • 28191084: feat: add security schemes to the reference
  • e01134d4: style: use horizontal ellipsis to indicate strings in example responses
  • Updated dependencies [64f8a018]
  • Updated dependencies [ce04794a]
  • Updated dependencies [7c3091c6]

0.8.1

Patch Changes

  • 7ed5c61a: fix: add target blank to markdown links

0.8.0

Minor Changes

  • 2eba4010: Refactor and simplify API references layout

Patch Changes

  • 9d352b13: fix: make the sidebar work with tags without operations
  • b71c4db7: feat: example objects in arrays for example responses
  • 01109c6f: feat: use min value as the default for generated example responses
  • Updated dependencies [df74d017]
  • Updated dependencies [75d12f56]
  • Updated dependencies [2eba4010]

0.7.11

Patch Changes

  • 1f064818: added scrolling to the sidebar on highlight
  • 1bd5fb80: feat: add syntax highlighting to the markdown renderer

0.7.10

Patch Changes

  • c1cb507d: fix: search modal not scrolling to proper endpoints
  • d1fcd043: ensure endpoint parent tag is open before trying to scroll

0.7.9

Patch Changes

  • 45ac0aaa: fix missing property description

0.7.8

Patch Changes

  • ab348cb5: Mobile improvements and layout fixes + consitency improvements
  • 211ed1c7: polish up the models
  • ca2689b6: feat: add example request body to example request generator
  • ae247253: refactor: move generateRequest helpers to @scalar/api-reference
  • 5896b08d: fix: add missing null check to jsonRequest requestBody
  • Updated dependencies [ab348cb5]
  • Updated dependencies [aa24dbe6]
  • Updated dependencies [ae247253]

0.7.7

Patch Changes

  • 0495c0f9: feat: show models ("schemas") in the reference
  • 528df9d1: feat: add support for oneOf, anyOf, allOf, not schema rules
  • 8915c5cf: fix: add null check to tag operations in sidebar
  • d755d34e: fix: default show endpoint when tags have one endpoint
  • a161c962: fix: better deal with empty descriptions
  • 7e7ea175: feat: use default value in schemas for example responses

0.7.6

Patch Changes

  • d87566fd: refactor: new section components, new sidebar
  • 43628366: Fix overflow and scrolling issues for API client
  • 6131fa72: chore: update README
  • dd8df965: feat: add requestbody to api client if json schema available
  • 52534317: Fix references not respecting height on mobile Safari
  • Updated dependencies [db7f5f57]
  • Updated dependencies [d87566fd]
  • Updated dependencies [8be53df2]
  • Updated dependencies [4eaee866]
  • Updated dependencies [43628366]
  • Updated dependencies [06b46553]
  • Updated dependencies [dd8df965]

0.7.5

Patch Changes

  • fd875bc7: feat: show headings with a higher depth in the sidebar
  • 28cce042: fix: externalize markdown plugins to not break SSG
  • Updated dependencies [28cce042]

0.7.4

Patch Changes

0.7.3

Patch Changes

  • 99936ab8: feat: add markdown headings to the sidebar
  • 08e8f637: style: improve markdown code blocks

0.7.2

Patch Changes

0.7.1

Patch Changes

  • 3c2bc6a9: style: update the search modal style

0.7.0

Minor Changes

  • fd38deb0: Add mobile menu and breadcrumbs

Patch Changes

0.6.23

Patch Changes

0.6.22

Patch Changes

  • d4789991: fix: populate search fuse data immediately

0.6.21

Patch Changes

0.6.20

Patch Changes

0.6.19

Patch Changes

0.6.18

Patch Changes

0.6.17

Patch Changes

0.6.16

Patch Changes

  • 0f87c35d: feat: add dark mode toggle 👀
  • 3dd2574d: sidebar toggle not flex aligned + fix folder colors
  • Updated dependencies [30aee7d1]
  • Updated dependencies [99744358]
  • Updated dependencies [24deb723]
  • Updated dependencies [3dd2574d]

0.6.15

Patch Changes

0.6.14

Patch Changes

0.6.13

Patch Changes

  • 727d7f47: make swagger editor tab state controllable via prop
  • Updated dependencies [727d7f47]
  • Updated dependencies [727d7f47]

0.6.12

Patch Changes

0.6.11

Patch Changes

0.6.10

Patch Changes

0.6.9

Patch Changes

0.6.8

Patch Changes

0.6.7

Patch Changes

0.6.6

Patch Changes

0.6.5

Patch Changes

0.6.4

Patch Changes

0.6.3

Patch Changes

  • 75a69ba7: feat: add theme prop and improve theme support
  • effc1f31: feat: add new HTML API based on script tags chore: deprecate old div based HTML API
  • 75a69ba7: refactor: rename @scalar/default-theme to @scalar/themes, add more themes
  • b03a09c7: chore: remove Vite env proxy variable
  • 11270915: fix: use higher z-index values
  • Updated dependencies [75a69ba7]
  • Updated dependencies [d6a10e1f]
  • Updated dependencies [75a69ba7]

0.6.2

Patch Changes

0.6.1

Patch Changes

  • 5a5e760f: fix: use .js as file extension for the browser build

0.6.0

Minor Changes

  • 87fda5af: chore: update dependencies

Patch Changes

0.5.6

Patch Changes

0.5.5

Patch Changes

0.5.4

Patch Changes

0.5.3

Patch Changes

0.5.2

Patch Changes

0.5.1

Patch Changes

0.5.0

Minor Changes

  • 0902d82c: * refactor: add the CodeMirror component to @scalar/use-codemirror, use it everywhere
    • feat: allow to pass forceDarkMode to the CodeMirror component

Patch Changes

0.4.0

Minor Changes

  • 5057e213: make npm packages public :-)

Patch Changes

0.3.4

Patch Changes

0.3.3

Patch Changes

  • 6420305b: fix: only require nunjucks where it’s needed
  • Updated dependencies [6420305b]

0.3.2

Patch Changes

0.3.1

Patch Changes

  • 0f345e4: fix: import CSS file from component, makes sure the CSS is included in the build
  • Updated dependencies [0f345e4]

0.3.0

Minor Changes

  • b0f5221: manually releasing all packages to make sure the lastest version is on npm

Patch Changes

0.2.1

Patch Changes

0.2.0

Minor Changes

  • a ton of fixes, new fastify plugin

Patch Changes

0.1.31

Patch Changes

0.1.30

Patch Changes

0.1.29

Patch Changes

0.1.28

Patch Changes

  • add: language selector supersede classes

0.1.27

Patch Changes

0.1.26

Patch Changes

  • fix: add server null check

0.1.25

Patch Changes

  • fix empty servers edge case

0.1.24

Patch Changes

  • add slots to modal

0.1.23

Patch Changes

0.1.22

Patch Changes

0.1.21

Patch Changes

0.1.20

Patch Changes

0.1.19

Patch Changes

  • add missing hocuspocus url prop

0.1.18

Patch Changes

0.1.17

Patch Changes

0.1.16

Patch Changes

0.1.15

Patch Changes

0.1.14

Patch Changes

0.1.13

Patch Changes

0.1.12

Patch Changes

0.1.11

Patch Changes

0.1.10

Patch Changes

0.1.9

Patch Changes

0.1.8

Patch Changes

  • 0d8f0f0: fix layout changes

0.1.7

Patch Changes

0.1.6

Patch Changes

0.1.5

Patch Changes

0.1.4

Patch Changes

0.1.3

Patch Changes

  • e6f4941: fix: basic default styles

0.1.2

Patch Changes

0.1.1

Patch Changes