Skip to content

Commit 145789e

Browse files
committed
update error message, trigger build failur
1 parent 761a44c commit 145789e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/generate-samples.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ else
6666
retcode=${PIPESTATUS[0]}
6767
fi
6868

69-
if [[ $retcode -ne 0 ]] || grep -q -i "exception" "$tmpfile"; then
69+
if [[ $retcode -ne 0 ]] || grep -q -i "at org.openapitools" "$tmpfile"; then
7070
echo "Found exception(s) when running the generator(s) to update the samples."
7171
exit 1
7272
fi

modules/openapi-generator/src/main/java/org/openapitools/codegen/OpenAPINormalizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ protected boolean isSelfReference(String name, Schema subSchema) {
722722
*/
723723
public Schema normalizeSchema(Schema schema, Set<Schema> visitedSchemas) {
724724
// normalize reference schema
725-
if (schema != null && StringUtils.isNotEmpty(schema.get$ref())) {
725+
if (StringUtils.isNotEmpty(schema.get$ref())) {
726726
normalizeReferenceSchema(schema);
727727
}
728728

0 commit comments

Comments
 (0)