Skip to content

Commit 9ab929a

Browse files
committed
Fix github issues for oneOf in schema
1 parent 2be996e commit 9ab929a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/openapi/RefResolver.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ export class RefResolver {
1111
* @param schema
1212
*/
1313
resolveRef<T>(schema: OpenAPIV3.ReferenceObject | T): [T, string[]?] {
14+
// @ts-ignore
15+
if ("properties" in schema) {
16+
return [schema as T, undefined]
17+
}
1418
// @ts-ignore
1519
if ("oneOf" in schema) {
1620
// @ts-ignore

0 commit comments

Comments
 (0)