We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e50226 commit 984f330Copy full SHA for 984f330
tools/transformer/src/transformations/oneOf.js
@@ -104,6 +104,12 @@ function transformOneOfProperties(parentObject, api) {
104
}
105
} else {
106
// Otherwise this situation require human intervention
107
+ console.error(
108
+ "OpenAPI object is missing properties or allOf field. This is usually an error in the OpenAPI spec."
109
+ );
110
111
+ "Please ensure that elements of oneOf schema are objects (classes) instead of single types (bool, string etc.)."
112
113
throw new Error(`${JSON.stringify(childObject, "", 2)}`);
114
115
0 commit comments