big-architect-71258
10/17/2023, 7:03 PMpulumi-fortios
provider. Because it has a huge amount of resources I want the different resources grouped into separate "namespaces" in the SDK.
This works perfectly well for all languages except for the C# (Dotnet) Language generator, where it creates such incorrect namespace declarations Pulumiverse.Fortios.Filter/dns.Inputs
. In the Typescript the generated code is correct (ref. screenshot).
In schema.json
the ProfileDnsTranslation
object is declared as follows:
"fortios:filter/dns/ProfileDnsTranslation:ProfileDnsTranslation": {
"properties": {
"addrType": {
"type": "string",
"description": "DNS translation type (IPv4 or IPv6). Valid values: `ipv4`, `ipv6`.\n"
},
"dst": {
"type": "string",
"description": "IPv4 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src.\n"
},
"dst6": {
"type": "string",
"description": "IPv6 address or subnet on the external network to substitute for the resolved address in DNS query replies. Can be single IP address or subnet on the external network, but number of addresses must equal number of mapped IP addresses in src6.\n"
},
"id": {
"type": "integer",
"description": "ID.\n"
},
"netmask": {
"type": "string",
"description": "If src and dst are subnets rather than single IP addresses, enter the netmask for both src and dst.\n"
},
"prefix": {
"type": "integer",
"description": "If src6 and dst6 are subnets rather than single IP addresses, enter the prefix for both src6 and dst6 (1 - 128, default = 128).\n"
},
"src": {
"type": "string",
"description": "IPv4 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst.\n"
},
"src6": {
"type": "string",
"description": "IPv6 address or subnet on the internal network to compare with the resolved address in DNS query replies. If the resolved address matches, the resolved address is substituted with dst6.\n"
},
"status": {
"type": "string",
"description": "Enable/disable this DNS translation entry. Valid values: `enable`, `disable`.\n"
}
},
"type": "object",
"language": {
"nodejs": {
"requiredOutputs": [
"addrType",
"dst",
"dst6",
"id",
"netmask",
"prefix",
"src",
"src6",
"status"
]
}
}
},
codegen/dotnet/gen.go
Method `namespaceName`splits namespaces by using the -
character, where I used /
. @ancient-policeman-24615 @enough-garden-22763 Am I wrong with my namespace declarations using the /
character, or is it a bug?ancient-policeman-24615
10/19/2023, 10:11 PMbig-architect-71258
10/20/2023, 11:31 AMechoing-dinner-19531
10/20/2023, 11:38 AMbig-architect-71258
10/20/2023, 11:40 AMechoing-dinner-19531
10/20/2023, 12:22 PMbig-architect-71258
10/20/2023, 12:25 PMechoing-dinner-19531
10/20/2023, 12:32 PMbig-architect-71258
10/20/2023, 12:33 PM