Comments (8)
Yeah, I just noticed what that package does, it's pure magic! But even then, I kinda want it to have name specified by me 😂
from refitter.
@bielik01 This is implemented but not thoroughly tested yet. I'm taking a few days off for the autumn break to spend some time with the family
from refitter.
@bielik01 thanks for taking the time to report this
The .g.cs
output file was a remnant of the initial source generator implementation. In the original implementation, which didn't work, the output file was never persisted to disk (the normal behavior for source generators). Unfortunately, source generators ran independently of each other and the Refit source generator didn't know that Refitter generated a Refit interface
I'll fix this by adding the outputFileName
that you suggest
from refitter.
@all-contributors please add @bielik01 for bugs
from refitter.
I've put up a pull request to add @bielik01! 🎉
from refitter.
Thanks a lot! I try to keep files in the project to minimum 😅
from refitter.
@bielik01 Do you use the Refitter.SourceGenerator
package reference? This does some MSBuild magic that automagically includes any .refitter file as AdditionalFiles
which allows the Refitter source generator to discover it upon build time, generating the .g.cs
file. There wouldn't be a need to use the CLI tool if you're already using the source generator
Thanks a lot! I try to keep files in the project to minimum 😅
Perfectly understandable, I do the same. No code is better and faster than no code :)
from refitter.
I'll try to implement this tonight
from refitter.
Related Issues (20)
- NSwag contracts HOT 14
- Support $ref references to separate files in OpenAPI specifications. HOT 8
- Config parameter to add suffix to contract types HOT 3
- Manually run refit generator so the source can be directly added to the compilation rather than writing to a file HOT 2
- IServiceCollectionExtensions extra closing parenthesis with httpMessageHandlers HOT 5
- Multipart endpoint [FromForm] decorated argument is missing from signature HOT 1
- if a path contain colon (":") character then must be replace it HOT 4
- The client parameter type's names occur wrong when multipart is include. HOT 6
- Error on build - dependency to Microsoft.Bcl.AsyncInterfaces HOT 15
- Dependency Dashboard
- I can not generate interface HOT 25
- Unable to change arrayType to List or IList HOT 9
- File not found when using uri HOT 2
- Already defines a member with the same parameter types HOT 8
- `operationNameGenerator` enum not resolved from .refitter file HOT 2
- Add support for old core frameworks versions from .net6 HOT 5
- More than one generated Client Api will result in an Extension Method Conflict for ConfigureRefitClients HOT 6
- IAsyncEnumerable - JSONL/application/x-ndjson HOT 7
- Hyphens with JsonStringEnumConverter results in `JSON value could not be converted` HOT 7
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 refitter.