Skip to content

Commit

Permalink
Use openapi transformation agreeable to api-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ncovercash committed Oct 4, 2024
1 parent f389b60 commit ba265a3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
14 changes: 9 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>${openapi-generator.version}</version>
<version>7.8.0</version>
<executions>
<execution>
<id>mod-fqm-manager-openapi</id>
Expand All @@ -324,10 +324,14 @@
<supportingFilesToGenerate>ApiUtil.java</supportingFilesToGenerate>
<generateModelDocumentation>true</generateModelDocumentation>
<skipIfSpecIsUnchanged>true</skipIfSpecIsUnchanged>
<schemaMappings>
<schemaMapping>FqmMigrateRequest=org.folio.querytool.domain.dto.FqmMigrateRequest</schemaMapping>
<schemaMapping>FqmMigrateResponse=org.folio.querytool.domain.dto.FqmMigrateResponse</schemaMapping>
</schemaMappings>
<typeMappings>
<typeMapping>object+FqmMigrateRequest=FqmMigrateRequest</typeMapping>
<typeMapping>object+FqmMigrateResponse=FqmMigrateResponse</typeMapping>
</typeMappings>
<importMappings>
<importMapping>FqmMigrateRequest=org.folio.querytool.domain.dto.FqmMigrateRequest</importMapping>
<importMapping>FqmMigrateResponse=org.folio.querytool.domain.dto.FqmMigrateResponse</importMapping>
</importMappings>
<configOptions>
<java8>true</java8>
<dateLibrary>java</dateLibrary>
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/org/folio/fqm/resource/MigrationController.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import lombok.RequiredArgsConstructor;

import org.apache.commons.lang3.StringUtils;
import org.folio.fqm.migration.MigratableQueryInformation;
import org.folio.fqm.service.MigrationService;
import org.folio.querytool.domain.dto.FqmMigrateRequest;
Expand All @@ -13,7 +12,6 @@
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequiredArgsConstructor
public class MigrationController implements FqmVersionApi {
Expand Down
8 changes: 5 additions & 3 deletions src/main/resources/swagger.api/mod-fqm-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,18 @@ paths:
content:
application/json:
schema:
description: Mapped to schemas in folio-query-tool-metadata
type: FqmMigrateRequest
description: Mapped to schema in folio-query-tool-metadata
type: object
format: FqmMigrateRequest
responses:
'200':
description: 'FQM version updated successfully'
content:
application/json:
schema:
description: Mapped to schemas in folio-query-tool-metadata
type: FqmMigrateResponse
type: object
format: FqmMigrateResponse
'400':
$ref: '#/components/responses/badRequestResponse'
'500':
Expand Down

0 comments on commit ba265a3

Please sign in to comment.