Comments (12)
Hi, @Kshopper93
What error does the IDE show you?
Can you attach the screenshot?
from unchase.openapi.connectedservice.
Class not found.
from unchase.openapi.connectedservice.
Hello,
do you found any issue in my code?
from unchase.openapi.connectedservice.
Hi, @Kshopper93
Please, attach a screenshot of the generated MailData
class.
Or send me the specification file by which the code was generated (to [email protected] directly).
from unchase.openapi.connectedservice.
Hi, @unchase
there is no MailData class in the generated file. I have only the Child classes MailMessageSmtPData and MailMessageSendGridData.
The MailData (Parent class) variables merged into the child chlasses. But i need the Base and Child classes separately
Where can i find the specification file?
from unchase.openapi.connectedservice.
You can find this file in the directory with the generated client (it has the extension - json):
from unchase.openapi.connectedservice.
@unchase - U got a Email with the File.
Thank you
from unchase.openapi.connectedservice.
@Kshopper93
There is no MailMessage
contract in json-specification file (there is only MailMessageSmtpData
and MailMessageSendGridData
), therefore, it is not created in client code.
Should to look the issue on the server side, which generates the specification, because the connected service generates a client based on the specification passed to it.
from unchase.openapi.connectedservice.
@unchase
Can I send you the full Project and you can take a look?
from unchase.openapi.connectedservice.
Of course, send, I will try to help.
from unchase.openapi.connectedservice.
U got a email with github link to my project.
Thank you.
from unchase.openapi.connectedservice.
@Kshopper93
See the same issue. There is a problem in specification generation: generates without base classes.
it's not implemented yet in Swashbuckle.AspNetCore.
You can try to use NSwag in the server side for generating specification. It seems to be allows to generate base classes in the specification schema: see this and this topics.
from unchase.openapi.connectedservice.
Related Issues (20)
- Sends incorrect content HOT 1
- BUG Visual Studio 17.2.0 Update removes context menu HOT 15
- The generator returns an error if the endpoint has more than one valid status HOT 1
- Client Class has to be regenerated providing all the inputs if any changes at the API Side HOT 1
- Generation of client code from YAML wont compile in NET 4.8 / 6 class library HOT 1
- Error being produced by generated code
- Code generation enters infinite loop in v1.8.0 HOT 2
- The Connected Services component 'Unchase OpenAPI (Swagger) Connected Service' failed: (HRESULT:0x80070002) Could not load file or assembly Microsoft.VisualStudio.Interop HOT 1
- Does Unchase OpenAPI work with the Visual Studio community edition? HOT 2
- BUG
- Problem with code generation when a controller receives a collection as a parameter HOT 1
- Unable to Set DataAnnotations ErrorMessage For Dto HOT 1
- Templates Ignored HOT 1
- Does not support Visual Studio 2022 HOT 2
- Error: The type initializer for 'LiquidTemplate' threw an exception.. HOT 2
- [BUG] Switching off Inject HttpClient via constructor resulting in error prone code
- Swagger client hides any message sendt from server. HOT 1
- [FEATURE] Command to generate new versions HOT 1
- C# Generated code results in unusable variables
- Exclude additional properties with JsonExtensionData
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 unchase.openapi.connectedservice.