GithubHelp home page GithubHelp logo

Comments (12)

unchase avatar unchase commented on May 20, 2024

Hi, @Kshopper93
What error does the IDE show you?
Can you attach the screenshot?

from unchase.openapi.connectedservice.

kevinvenclovas avatar kevinvenclovas commented on May 20, 2024

Class not found.

image

image

from unchase.openapi.connectedservice.

kevinvenclovas avatar kevinvenclovas commented on May 20, 2024

Hello,

do you found any issue in my code?

from unchase.openapi.connectedservice.

unchase avatar unchase commented on May 20, 2024

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.

kevinvenclovas avatar kevinvenclovas commented on May 20, 2024

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

image

Where can i find the specification file?

from unchase.openapi.connectedservice.

unchase avatar unchase commented on May 20, 2024

You can find this file in the directory with the generated client (it has the extension - json):

spec

from unchase.openapi.connectedservice.

kevinvenclovas avatar kevinvenclovas commented on May 20, 2024

@unchase - U got a Email with the File.

Thank you

from unchase.openapi.connectedservice.

unchase avatar unchase commented on May 20, 2024

@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.

kevinvenclovas avatar kevinvenclovas commented on May 20, 2024

@unchase
Can I send you the full Project and you can take a look?

from unchase.openapi.connectedservice.

unchase avatar unchase commented on May 20, 2024

Of course, send, I will try to help.

from unchase.openapi.connectedservice.

kevinvenclovas avatar kevinvenclovas commented on May 20, 2024

@unchase

U got a email with github link to my project.

Thank you.

from unchase.openapi.connectedservice.

unchase avatar unchase commented on May 20, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.