Skip to content

Commit

Permalink
Merge pull request #92 from marclave/marc/update-to-scalar-1.13.0
Browse files Browse the repository at this point in the history
fix: update scalar to v1.13.0
  • Loading branch information
SaltyAom authored Jan 24, 2024
2 parents d8e7294 + 0e3e344 commit c94d2bc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export const swagger =
<Path extends string = '/swagger'>(
{
provider = 'scalar',
scalarVersion = '1.12.5',
scalarCDN = "",
scalarVersion = 'latest',
scalarCDN = '',
scalarConfig = {},
documentation = {},
version = '5.9.0',
Expand All @@ -33,8 +33,8 @@ export const swagger =
excludeMethods = ['OPTIONS']
}: ElysiaSwaggerConfig<Path> = {
provider: 'scalar',
scalarVersion: '1.12.5',
scalarCDN: "",
scalarVersion: 'latest',
scalarCDN: '',
scalarConfig: {},
documentation: {},
version: '5.9.0',
Expand Down
8 changes: 5 additions & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,26 @@ export interface ElysiaSwaggerConfig<Path extends string = '/swagger'> {
/**
* Version to use for Scalar cdn bundle
*
* @default '1.12.5'
* @default 'latest'
* @see https://github.com/scalar/scalar
*/
scalarVersion?: string
/**
* Optional override to specifying the path for the Scalar bundle
*
* Custom URL or path to locally hosted Scalar bundle
*
* Lease blank to use default jsdeliver.net CDN
*
* @default ''
* @example 'https://unpkg.com/@scalar/[email protected]/dist/browser/standalone.js'
* @example '/public/standalone.js'
* @see https://github.com/scalar/scalar
*/
scalarCDN?: string
/**
* Scalar configuration to customize scalar
*
* @default '1.12.5'
*'
* @see https://github.com/scalar/scalar
*/
scalarConfig?: ReferenceConfiguration
Expand Down

0 comments on commit c94d2bc

Please sign in to comment.