Skip to content

Commit c32e59c

Browse files
walsha2josh-burton
andauthored
Public types (#78)
makes schema subtypes public, adds oneOf field support Co-authored-by: Josh Burton <[email protected]>
1 parent 0439e03 commit c32e59c

File tree

5 files changed

+412
-374
lines changed

5 files changed

+412
-374
lines changed

lib/src/open_api/index.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ bool _checkReferenceTypes(name, ref, self) {
5151
final sType = self.runtimeType.toString().replaceAll(r'_$_', '');
5252

5353
if (ref.runtimeType != self.runtimeType) {
54-
if (ref is _SchemaMap && self is _SchemaObject) {
54+
if (ref is SchemaMap && self is SchemaObject) {
5555
// Map is defined with typedef
5656
return true;
57-
} else if (ref is _SchemaArray && self is _SchemaMap) {
57+
} else if (ref is SchemaArray && self is SchemaMap) {
5858
// Array is defined with typedef
5959
return true;
60-
} else if (self is _SchemaObject) {
60+
} else if (self is SchemaObject) {
6161
// Reference types can be different if the reference is a SchemaObject
6262
return false;
6363
} else {

0 commit comments

Comments
 (0)