@@ -45,7 +45,7 @@ When using helmet, there may be a problem with CSP, to solve this collision, con
4545        directives: {
4646          defaultSrc: [` 'self' ` ],
4747          styleSrc: [` 'self' ` , ` 'unsafe-inline' ` ],
48-           imgSrc: [` 'self' ` , " data:"  , " validator.swagger .io"  ],
48+           imgSrc: [` 'self' ` , " data:"  , " validator.scalar .io"  ],
4949          scriptSrc: [` 'self' ` , ` https: 'unsafe-inline' ` ]
5050        }
5151      }
@@ -75,14 +75,14 @@ Some options are available to configure Scalar, Ts.ED and the default spec infor
7575|  -------------------- |  ------------------------------------------------------------- |  ----------------------------------------------------------------------------------------------------- | 
7676|  path                 |  ` /api-doc `                                                     |  The url subpath to access to the documentation.                                                       | 
7777|  specVersion          |  ` 3.0.1 `                                                        |  The OpenSpec version.                                                                                 | 
78- |  fileName             |  ` swagger .json`                                                 |  Swagger  file name. By default swagger .json.                                                           | 
79- |  doc                  |  ` hidden-doc `                                                   |  The documentation key used by ` @Docs `  decorator to create several swagger  documentations.             | 
78+ |  fileName             |  ` openapi .json`                                                 |  OpenAPI  file name. By default openapi .json.                                                           | 
79+ |  doc                  |  ` hidden-doc `                                                   |  The documentation key used by ` @Docs `  decorator to create several openapi  documentations.             | 
8080|  viewPath             |  ` ${rootDir}/views/scalar.ejs `  or ` false `                       |  The path to the ejs template. Set false to disabled scalar.                                           | 
8181|  cssPath              |  ` ${rootDir}/assets/scalar.css `                                 |  The path to the CSS file.                                                                             | 
8282|  showExplorer         |  ` true `                                                         |  Display the search field in the navbar.                                                               | 
83- |  spec                 |  ` {swagger : "2. 0"} `                                              |  The default information spec.                                                                         | 
84- |  specPath             |  ` ${rootDir}/spec/swagger .base.json `                            |  Load the base spec documentation from the specified path.                                             | 
85- |  outFile              |  ` ${rootDir}/spec/swagger .json `                                 |  Write the ` swagger .json`  spec documentation on the specified path.                                    | 
83+ |  spec                 |  ` {openapi : "3.1. 0"} `                                           |  The default information spec.                                                                         | 
84+ |  specPath             |  ` ${rootDir}/spec/openapi .base.json `                            |  Load the base spec documentation from the specified path.                                             | 
85+ |  outFile              |  ` ${rootDir}/spec/openapi .json `                                 |  Write the ` openapi .json`  spec documentation on the specified path.                                    | 
8686|  hidden               |  ` true `                                                         |  Hide the documentation in the dropdown explorer list.                                                 | 
8787|  options              |  Scalar options                                                |  Scalar options. See (https://github.com/scalar/scalar/tree/main/packages/api-reference#props)          | 
8888|  operationIdFormatter |  ` (name: string, propertyKey: string, path: string) => string `  |  A function to generate the operationId.                                                               | 
@@ -94,7 +94,7 @@ Some options are available to configure Scalar, Ts.ED and the default spec infor
9494
9595#### By decorators  
9696
97- It's also possible to create several swagger  documentations with the ` doc `  option:
97+ It's also possible to create several openapi  documentations with the ` doc `  option:
9898
9999<<< @/tutorials/snippets/scalar/multi-spec.ts
100100
@@ -109,10 +109,10 @@ You can use the `pathPatterns` options to include only controllers whose paths m
109109``` typescript 
110110import  {Configuration } from  " @tsed/common"  ;
111111import  " @tsed/platform-express"  ;
112- import  " @tsed/scalar"  ; //  import swagger  Ts.ED module
112+ import  " @tsed/scalar"  ; //  import scalar  Ts.ED module
113113
114114@Configuration ({
115-   swagger : [
115+   scalar : [
116116    {
117117      path: " /api-admin"  ,
118118      pathPatterns: [" /rest/admin/**"  ]
0 commit comments