-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated types are incorrect when both readOnly
and writeOnly
are used
#453
Comments
This strange behavior is observed only when export interface Login {
message: string;
}
export interface LoginWrite extends Login {
email: string;
password: string;
}
|
Hey @bdm-k that's off... thank you for reporting the issue! I have an Open PR with quite the big refactor to the read/write only logic Would you mind giving |
@Xiphe Thank you for taking time to look into this issue. |
Damn ;) I'll try to reserve a few hours next week to see if I can address the issue in the linked PR. |
oazapfts/src/codegen/generate.ts Lines 766 to 768 in 8e852f9
Hi @Xiphe. It seems like these lines have to do with the problem. |
Good catch! Can you give |
The problem has been fixed in that version! Thank you very much! |
Ok, I'll be on vacation for a good week now. And I'd rather be around for some days after I merge the fix to |
Hello,
I'm using version 4.7.4 and I encountered a bug.
Let me take the following schema object for example.
email
andpassword
are write-only.message
is read-only. None of the properties are used in both read and write. So, the expected generation result is as follows.But the actual result is
The text was updated successfully, but these errors were encountered: