File tree Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -85,22 +85,9 @@ export const createVersionPackage = async (
8585
8686 const documents = buildResultDto . merged ? [ buildResultDto . merged ] : [ ...buildResultDto . documents . values ( ) ]
8787
88- // todo refactor accordingly to new reqs
8988 switch ( buildResult . config . buildType ) {
90- case BUILD_TYPE . EXPORT_REST_DOCUMENT :
91- if ( buildResult . exportDocuments . length === 1 ) {
92- return Buffer . from ( await dumpRestDocument ( buildResultDto . exportDocuments [ 0 ] , ctx . config . format ) . arrayBuffer ( ) )
93- }
94- await createExportDocumentDataFiles ( zip , buildResultDto . exportDocuments , ctx )
95- return await zip . buildResult ( options )
96-
9789 case BUILD_TYPE . EXPORT_VERSION :
98- if ( buildResult . exportDocuments . length === 1 ) {
99- return Buffer . from ( await dumpRestDocument ( buildResultDto . exportDocuments [ 0 ] , ctx . config . format ) . arrayBuffer ( ) )
100- }
101- await createExportDocumentDataFiles ( zip , buildResultDto . exportDocuments , ctx )
102- return await zip . buildResult ( options )
103-
90+ case BUILD_TYPE . EXPORT_REST_DOCUMENT :
10491 case BUILD_TYPE . EXPORT_REST_OPERATIONS_GROUP :
10592 if ( buildResult . exportDocuments . length === 1 ) {
10693 return Buffer . from ( await dumpRestDocument ( buildResultDto . exportDocuments [ 0 ] , ctx . config . format ) . arrayBuffer ( ) )
Original file line number Diff line number Diff line change @@ -131,7 +131,6 @@ export interface ReducedSourceSpecificationsBuildConfig extends BuildConfigBase
131131 version : VersionId // @revision for rebuild
132132 groupName : string
133133 format : OperationsGroupExportFormat
134- // allowedOasExtensions?: OpenApiExtensionKey[]
135134 apiType ?: OperationsApiType
136135}
137136
@@ -142,7 +141,6 @@ export interface MergedSpecificationBuildConfig extends BuildConfigBase {
142141 version : VersionId // @revision for rebuild
143142 groupName : string
144143 format : OperationsGroupExportFormat
145- // allowedOasExtensions?: OpenApiExtensionKey[]
146144 apiType ?: OperationsApiType
147145}
148146
@@ -156,7 +154,6 @@ export interface ChangelogBuildConfig extends BuildConfigBase {
156154 previousVersionPackageId ?: PackageId
157155
158156 format : OperationsGroupExportFormat
159- // allowedOasExtensions?: OpenApiExtensionKey[]
160157 apiType ?: OperationsApiType
161158}
162159// todo
@@ -171,7 +168,6 @@ export interface PrefixGroupsChangelogBuildConfig extends BuildConfigBase {
171168 previousGroup ?: string
172169
173170 format : OperationsGroupExportFormat
174- // allowedOasExtensions?: OpenApiExtensionKey[]
175171 apiType ?: OperationsApiType
176172}
177173
You can’t perform that action at this time.
0 commit comments