@@ -2,20 +2,20 @@ import type {
22 OpenAPICore ,
33 OpenAPISecurityRequirement ,
44 OpenAPITag ,
5- } from ' ./Core.types.ts' ;
6- import { createEndpointBuilder } from ' ./EndpointBuilder.ts' ;
7- import { createEndpointPath , type EndpointPath } from ' ./EndpointPath.ts' ;
8- import type { AllowedLicenses } from ' ./Licenses.types.ts' ;
5+ } from " ./Core.types.ts" ;
6+ import { createEndpointBuilder } from " ./EndpointBuilder.ts" ;
7+ import { createEndpointPath , type EndpointPath } from " ./EndpointPath.ts" ;
8+ import type { AllowedLicenses } from " ./Licenses.types.ts" ;
99
1010class OpenAPI {
1111 private raw : OpenAPICore ;
1212
1313 constructor ( ) {
1414 this . raw = {
15- openapi : ' 3.1.0' ,
15+ openapi : " 3.1.0" ,
1616 info : {
17- title : ' OpenAPI 3.1.0' ,
18- version : ' 1.0.0' ,
17+ title : " OpenAPI 3.1.0" ,
18+ version : " 1.0.0" ,
1919 } ,
2020 } ;
2121 }
@@ -63,19 +63,19 @@ class OpenAPI {
6363 }
6464
6565 setLicenseName ( name : string ) : this {
66- this . raw . info . license = this . raw . info . license || { name : '' } ;
66+ this . raw . info . license = this . raw . info . license || { name : "" } ;
6767 this . raw . info . license . name = name ;
6868 return this ;
6969 }
7070
7171 setLicenseUrl ( url : string ) : this {
72- this . raw . info . license = this . raw . info . license || { name : '' } ;
72+ this . raw . info . license = this . raw . info . license || { name : "" } ;
7373 this . raw . info . license . url = url ;
7474 return this ;
7575 }
7676
7777 setLicenseIdentifier ( identifier : AllowedLicenses ) : this {
78- this . raw . info . license = this . raw . info . license || { name : '' } ;
78+ this . raw . info . license = this . raw . info . license || { name : "" } ;
7979 this . raw . info . license . identifier = identifier ;
8080 return this ;
8181 }
@@ -104,7 +104,7 @@ class OpenAPI {
104104 }
105105
106106 setSecurity ( scheme : {
107- type : ' apiKey' | ' http' | ' oauth2' | ' openIdConnect' ;
107+ type : " apiKey" | " http" | " oauth2" | " openIdConnect" ;
108108 name : string ;
109109 scopes ?: string [ ] ;
110110 } ) : this {
@@ -153,7 +153,7 @@ class OpenAPI {
153153 }
154154}
155155
156- export { OpenAPI , createEndpointPath , createEndpointBuilder } ;
156+ export { createEndpointBuilder , createEndpointPath , OpenAPI } ;
157157
158158// const openAPI = new OpenAPI();
159159
0 commit comments