Skip to content

Fields generated for a conditional in a nested type is propagated to the parent type as well #1

@malware-dev

Description

@malware-dev

namespace Go.Features.Shell;

///


/// Navigation target for the shell.
///

public abstract class NavTarget
{
{{ $foreach navTarget in NavTargets }}
public class {{ name }}: NavTarget
{
///
/// Creates a new instance of the class.
///

public {{ name }}(): base("{{ escapedUrl }}")
{
}

{{ $foreach queryParam in queryParameters }}
public {{ $if isRequired }}required {{ $end }}{{ type }} {{ name }} { get; init; }
{{ $next }}
}
}

"IsRequired" is added as a property both on the queryParameters type and the navTarget type

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions