Suggested fix: pass "optionality" of the parameter separately to OneToOneType, and base the isNullable check on that rather than the foreignKey type. Can someone approve this approach?