Skip to content
Snippets Groups Projects
Verified Commit 446ae6e2 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

DOC: update README, BUG: typo in code

parent b67ab557
No related branches found
No related tags found
1 merge request!2DOC: update README, BUG: typo in code
Pipeline #52891 passed
...@@ -55,6 +55,34 @@ Stop the running service with `CTRL-C`. ...@@ -55,6 +55,34 @@ Stop the running service with `CTRL-C`.
## Troubleshooting ## Troubleshooting
### API Generation on Windows
When running `mvn package` under Microsoft Windows the code generation fails with
```
[ERROR] Error resolving schema #/components/schemas/OperationsLogRecord
java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\Users\Indiscale\Documents\fdo-manager-service-f-windows-api-generation\api/src/main/resourc es/api.yaml
at java.net.URI$Parser.fail (URI.java:2995)
at java.net.URI$Parser.checkChars (URI.java:3166)
at java.net.URI$Parser.parse (URI.java:3202)
at java.net.URI.<init> (URI.java:645)
...
```
There seems to be a problem with the maven plugin or the parser. This is a
known issue, see https://github.com/OpenAPITools/openapi-generator/issues/18161
**Workaround**: change the `api/pom.xml`:
```
</goals>
<id>buildApi</id>
<configuration>
- <inputSpec>${basedir}/src/main/resources/api.yaml</inputSpec>
+ <inputSpec>api/src/main/resources/api.yaml</inputSpec>
<generatorName>spring</generatorName>
```
### Exception on startup ### Exception on startup
When running the mockup repository as described above, the following exception is shown: When running the mockup repository as described above, the following exception is shown:
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<!--https://openapi-generator.tech/docs/plugins/--> <!--https://openapi-generator.tech/docs/plugins/-->
<groupId>org.openapitools</groupId> <groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId> <artifactId>openapi-generator-maven-plugin</artifactId>
<version>7.3.0</version> <version>7.6.0</version>
<executions> <executions>
<execution> <execution>
<goals> <goals>
......
...@@ -3,7 +3,7 @@ package com.indiscale.fdo.manager.service.fdo; ...@@ -3,7 +3,7 @@ package com.indiscale.fdo.manager.service.fdo;
import static org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.linkTo; import static org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.linkTo;
import com.indiscale.fdo.manager.DefaultData; import com.indiscale.fdo.manager.DefaultData;
import com.indiscale.fdo.manager.DefaultMetadat; import com.indiscale.fdo.manager.DefaultMetadata;
import com.indiscale.fdo.manager.api.DigitalObject; import com.indiscale.fdo.manager.api.DigitalObject;
import com.indiscale.fdo.manager.api.FDO; import com.indiscale.fdo.manager.api.FDO;
import com.indiscale.fdo.manager.api.FdoProfile; import com.indiscale.fdo.manager.api.FdoProfile;
...@@ -44,7 +44,7 @@ class MultipartFileWrapper implements InputStreamSource { ...@@ -44,7 +44,7 @@ class MultipartFileWrapper implements InputStreamSource {
} }
} }
class MetadataWrapper extends DefaultMetadat { class MetadataWrapper extends DefaultMetadata {
private MultipartFile file; private MultipartFile file;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment