Skip to content

Commit

Permalink
Fix inputSpec for openapi code gen
Browse files Browse the repository at this point in the history
Existing inputSpec only accessible from cps root. Changing path to be accessible elsewhere

Issue-ID: CPS-2332

Change-Id: I94ada93ea3c88d2fdca84d49c21e1ffc2923f4b2
Signed-off-by: egernug <[email protected]>
  • Loading branch information
egernug committed Sep 27, 2024
1 parent 81eb7df commit 4baa75b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cps-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>docs/api/swagger/cps/openapi.yaml</inputSpec>
<inputSpec>${project.basedir}/../docs/api/swagger/cps/openapi.yaml</inputSpec>
<invokerPackage>org.onap.cps.rest.controller</invokerPackage>
<modelPackage>org.onap.cps.rest.model</modelPackage>
<apiPackage>org.onap.cps.rest.api</apiPackage>
Expand All @@ -165,7 +165,7 @@
</goals>
<phase>compile</phase>
<configuration>
<inputSpec>docs/api/swagger/cps/openapi.yaml</inputSpec>
<inputSpec>${project.basedir}/../docs/api/swagger/cps/openapi.yaml</inputSpec>
<generatorName>openapi-yaml</generatorName>
<configOptions>
<outputFile>openapi.yaml</outputFile>
Expand Down

0 comments on commit 4baa75b

Please sign in to comment.