Skip to content
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

Optional fields in nested structs are omitted #58

Closed
sdboyer opened this issue Jul 14, 2022 · 0 comments
Closed

Optional fields in nested structs are omitted #58

sdboyer opened this issue Jul 14, 2022 · 0 comments
Labels
kind/bug Something isn't working

Comments

@sdboyer
Copy link
Contributor

sdboyer commented Jul 14, 2022

The following:

Inside: {
    optional?: [...{
        bar: string
        foo?: string
    }]
} @cuetsy(kind="interface")

Should produce:

export interface Inside {
  optional?: {
    foo?: string;
    bar: string;
  }[];
}

But instead produces:

export interface Inside {
  optional?: {
    bar: string;
  }[];
}

omitting the nested foo? field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant