Giter Site home page Giter Site logo

Comments (5)

dolauli avatar dolauli commented on July 30, 2024 1

@soroshsabz since you did not provide the swagger, I guess the root is you did not specify host in the swagger. And here is an example.

from autorest.powershell.

soroshsabz avatar soroshsabz commented on July 30, 2024

@dolauli How to resolve this problem?

thanks

from autorest.powershell.

soroshsabz avatar soroshsabz commented on July 30, 2024

@dolauli Do you can see my problem?

thanks a lot :)

from autorest.powershell.

soroshsabz avatar soroshsabz commented on July 30, 2024

@BethanyZhou Did you can help me?

thanks

from autorest.powershell.

soroshsabz avatar soroshsabz commented on July 30, 2024

@dolauli Yes your right

I correct this in BSVN/IpTables.Api#36 with below code

            // Add host to generated swagger file (swagger.json)
            options.AddServer(new OpenApiServer {
                Url = "http://{serverAddress}",
                Description = "IpTables Test Server",
                Variables = new Dictionary<string, OpenApiServerVariable>
                {
                    { "serverAddress", new OpenApiServerVariable {
                                                Default = "192.168.21.56:8080",
                                                Description = "Target Server Address" }
                    }
                }
            });

But I hope to autorest.Powershell make better error message for some errors like this

thanks again for helping me

from autorest.powershell.

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.