Skip to content

Stream and Date should be reserved names in CSharp #2369

Closed

Description

kiota generate --language csharp --openapi https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/twilio.com/api/1.39.1/openapi.yaml --output './it/csharp/client' --namespace-name 'app.client' -e '/2010-04-01/Accounts/*/Addresses/*/DependentPhoneNumbers.json' -e '/2010-04-01/Accounts/*/Recordings.json' -e '/2010-04-01/Accounts/*/Recordings/*.json' -e '/2010-04-01/Accounts/*/Conferences/*/Recordings.json' -e '/2010-04-01/Accounts/*/Calls/*/Recordings.json' -e '/2010-04-01/Accounts/*/Calls/*/Recordings/*.json' -e '/2010-04-01/Accounts/*/Conferences/*/Recordings/*.json' -e '/2010-04-01/Accounts/*/Calls/FeedbackSummary.json' -e '/2010-04-01/Accounts/*/Calls/FeedbackSummary/*.json' -e '/2010-04-01/Accounts/*/Calls/*/Events.json' -e '/2010-04-01/Accounts/*/IncomingPhoneNumbers/*/AssignedAddOns.json' -e '/2010-04-01/Accounts/*/IncomingPhoneNumbers/*/AssignedAddOns/*.json' -e '/2010-04-01/Accounts/*/Calls/*/Payments.json'

results in

client/App/Client/TwoZeroOneZeroZeroFourZeroOne/Accounts/Item/Calls/Item/Streams/Item/WithSItemRequestBuilder.cs(56,27): error CS0104: 'Stream' is an ambiguous
kiota generate --language csharp --openapi https://api.apis.guru/v2/specs/docusign.net/v2.1/openapi.yaml --output './it/csharp/client' --namespace-name 'app.client'

results in

csharp/client/App/Client/Models/TemplateTabs.cs(359,85): error CS0119: 'Date' is a type, which is not valid in the given context 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

CsharpPull requests that update .net codeWIPtype:bugA broken experience

Type

No type

Projects

  • Status

    Done ✔️

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions