Comments (1)
So we decided to make the APIs simple and lightweighted, since it is quite simple to do something like:
public class MyTypeFactory
{
public override CSharpType CreateCSharpType(InputType inputType) => inputType switch {
InputModelType model => new MyModel(model),
_ => base.CreateCSharpType(inputType)
};
}
to override the behavior of how to get the model, to make it simple, we do not need a method to specifically get a TypeProvider from a InputModelType
.
from cadl.
Related Issues (20)
- Adopt http\type\property\additional-properties from cadl ranch
- Adopt http\type\property\nullable from cadl ranch
- Adopt http\type\property\optionality from cadl ranch
- Adopt http\type\property\value-types from cadl ranch
- Add coverage for cadl ranch into ci
- Adopt http\authentication\oauth2 from cadl ranch
- Adopt Generating http\authentication\union from cadl ranch
- Migrate cadl-ranch test to main typespec repo
- Add ability to visit the provider after all its members have been visited
- Consider having CadlRanchTestAttribute dynamically detect generation state
- Follow-up testing to ToSerial ToEnum method
- Auto complete of value/model properties not working when the type is a union
- refactor(http-client-csharp): do not use `InputParameter.DefaultValue` for constant parameter values
- Bump TCGC version to 0.44.2
- Emit decorator list for models
- Emit decorator list for client and operation
- Operation example should resolve example for multiple responses correctly
- Add more docs on how to use `@example`
- cadl ranch coverage is zeroed out every time you call dotnet test
- Remove/Rename AutoRest.CSharp.Common.Input.InputTypes.Serialization Namespace from MGC
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 cadl.