Comments (9)
Hello @m-redding I tried to generate the SDK from the typespec (same config as tsp-location.yaml in your PR), the SDK generated with all the needed model files (e.g. ContentType.cs).
Would you please re-try ?
from autorest.csharp.
@chunyu3 I just retried but still am not seeing ContentType, is there anything I should be doing besides just running dotnet build /t:GenerateCode
?
from autorest.csharp.
And if the "Verify generated code" pipeline is passing does that mean it's generating as expected? - https://dev.azure.com/azure-sdk/public/_build/results?buildId=3941692&view=logs&j=b70e5e73-bbb6-5567-0939-8415943fadb9&t=2102385d-609d-5572-64d2-932661c7902f
from autorest.csharp.
retried but still am not seeing ContentType, is there anything I should be doing besides just running
dotnet
Maybe you need to check if use the right typespec file: check tsp-location.yaml to see if it use the right commit, and you can use /p:SaveInputs=true
to save the typespec files and check if it is correct, and check the tspConfig.yaml.
dotnet build /t:GenerateCode /p:SaveInputs=true
from autorest.csharp.
I confirmed that it is the correct TypeSpec file and commit
from autorest.csharp.
Any update on this by chance? I don't think I'm generating incorrectly, and I still don't see ContentType when generating. I'm having some trouble aligning the behavior with other languages because I'm the only one without it at the moment.
from autorest.csharp.
Hello @m-redding In the SDK, we use the Azure.Core.ContentType
as the content-type header type. I will continue investigating on this and reply you whether it is by design or not. Thanks
from autorest.csharp.
Hello @m-redding in .net SDK, we will not generate ContentType
class for content-type
header, we will use the Azure.Core.ContentType
directly. It is by design. Thanks.
from autorest.csharp.
Related Issues (20)
- IsCollectionDefined always return true if property is out of current project
- Any operation except get just not working in cadl-ranch context
- Adopt the latest serialization code pattern HOT 1
- JavaScript heap out of memory error when using --legacy HOT 6
- Add `decorator` fields in every Input types in tspCodeModel.json
- Get LRO final-state-via from tcgc HOT 3
- [defect] codegen gen crash : null value in list is not allowed error HOT 2
- [bug]: parameter name matching should be case-insensitive HOT 1
- .NET SDK generation from TypeSpec not generating the LRO utility method
- Does Auto Rest v3 support fake cred
- ProjectScaffolding create invalid project files for new Management-plane SDK cause compile failure
- Polymorphic object as an input on a RpcOperation uses the discriminator as input to function HOT 1
- Renames of extensible enums don't work
- Encode int as string Implementation
- [Azure Guidelines] Support encoding from StringIndex model to int.
- Upgrade Typespec libary version to 0.58.0 and tcgc version to 0.44.0
- Support rename operation in typespec input for MPG HOT 1
- [BUG] Public constructor for anonymous client auth missing
- Add decorator fields in every Input types in tspCodeModel.json
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autorest.csharp.