Content
View differences
Updated by Jan Sandbrink 10 months ago
### **Environment**:
OpenProject dev branch as of 2022-02-12
### **Logs**
```bash
$ OPENAPI_GEN_VERSION=5.3.1
$ [ -f "$DATA_DIR"/openapi-generator-cli-"$OPENAPI_GEN_VERSION".jar ] || wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/"$OPENAPI_GEN_VERSION"/openapi-generator-cli-"$OPENAPI_GEN_VERSION".jar
$ java -jar "$DATA_DIR"/openapi-generator-cli-"$OPENAPI_GEN_VERSION".jar generate --generator-name java -i openapi-spec-bundle.yml (...snipped args...) 2>&1 | egrep WARN | sort | uniq -c
6 6 [main] WARN o.o.codegen.DefaultCodegen - allOf with multiple schemas defined. Using only the first one: File_LinkModel
28 [main] WARN o.o.codegen.DefaultCodegen - allOf with multiple schemas defined. Using only the first one: Formattable
592 [main] WARN o.o.codegen.DefaultCodegen - allOf with multiple schemas defined. Using only the first one: Link
$
```
###
**Steps to reproduce:**
1. Run OpenAPI Generator against OpenProject dev branch API spec YML files
### **Expected **Actual Behavior**
No warnings are output.
### **Actual **Expected Behavior**
Hundrets of warnings are output, but only a specific type: `allOf with multiple schemas defined. Using only the first one`
Or is this fine in the spec ans a limitation in the OpenAPI Generator? (Unfortunately, I'm no OpenAPI expert yet.)
OpenProject dev branch as of 2022-02-12
### **Logs**
```bash
$ OPENAPI_GEN_VERSION=5.3.1
$ [ -f "$DATA_DIR"/openapi-generator-cli-"$OPENAPI_GEN_VERSION".jar ] || wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/"$OPENAPI_GEN_VERSION"/openapi-generator-cli-"$OPENAPI_GEN_VERSION".jar
$ java -jar "$DATA_DIR"/openapi-generator-cli-"$OPENAPI_GEN_VERSION".jar generate --generator-name java -i openapi-spec-bundle.yml (...snipped args...) 2>&1 | egrep WARN | sort | uniq -c
6
28 [main] WARN o.o.codegen.DefaultCodegen - allOf with multiple schemas defined. Using only the first one: Formattable
592 [main] WARN o.o.codegen.DefaultCodegen - allOf with multiple schemas defined. Using only the first one: Link
$
```
###
1. Run OpenAPI Generator against OpenProject dev branch API spec YML files
No warnings are output.
### **Actual
Hundrets of warnings are output, but only a specific type: `allOf with multiple schemas defined. Using only the first one`
Or is this fine in the spec ans a limitation in the OpenAPI Generator? (Unfortunately, I'm no OpenAPI expert yet.)