Skip to content

Commit

Permalink
Fix stablekernel#897: Openapi generator includes private ORM fields
Browse files Browse the repository at this point in the history
  • Loading branch information
point-source committed Sep 29, 2020
1 parent 0af9712 commit edb17d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aqueduct/lib/src/db/managed/entity.dart
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ class ManagedEntity implements APIComponentDocumenter {
return;
}

if (def.isPrivate) {
return;
}

final schemaProperty = def.documentSchemaObject(context);
schemaProperties[name] = schemaProperty;
});
Expand Down

0 comments on commit edb17d8

Please sign in to comment.