You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.
I have some ORMs with private fields that do not get serialized but are used internally. Despite not being exposed on any endpoint, the openapi generator includes these fields in the openapi json spec. Using the aqueduct "db" template as an example:
My model (with a non-serialized private field called _myPrivateField):
class Model extends ManagedObject<_Model> implements _Model {
@override
void willInsert() {
createdAt = DateTime.now().toUtc();
}
}
class _Model {
@primaryKey
int id;
@Column(indexed: true)
String name;
DateTime createdAt;
@Column(nullable: true)
String _myPrivateField;
}
I have some ORMs with private fields that do not get serialized but are used internally. Despite not being exposed on any endpoint, the openapi generator includes these fields in the openapi json spec. Using the aqueduct "db" template as an example:
My model (with a non-serialized private field called
_myPrivateField
):Generated Openapi JSON:
How can I tell the generator to ignore private fields?
Aqueduct version: 4.0.0-b1
Dart version: 2.9.1-stable
The text was updated successfully, but these errors were encountered: