Giter Club home page Giter Club logo

playground-standard-covoiturage's Issues

If --url flag is missing, the command fails with unclear error message

The command "pscovoit test" uses the URL to pass the query URL. This flag is not checked, so that a missing --url flag results in unclear error message.

In addition to checking that an URL is passed, it would probably be relevant to pass the URL as argument, and not as flag, which is anyway more common in other tools (curl, restish,...)

Format validation fails if host != server

The example in kin-openapi's README only works if the right server is specified in the OpenAPI spec (which will not be the case), or if the server is equal to the host, which will not always be the case.

Any test on a server that is not also the uri host currently fails on format assertion with following error :
no matching operation was found

The server needs probably to be set by hand (populate doc.Servers).

Server crashes if count = # of data

The count parameter is used in an unsafe way. Probably a "<=" that should be a "<"

To reproduce :

go run main.go test --url "http://localhost:1323/driver_journeys?departureLat=48.8588548&departureLng=2.264463&arrivalLat=47.8733876&arrivalLng=1.8296428&departureDate=1668608335&timeDelta=100000&departureRadius=10&arrivalRadius=10&count=2"

Error:

runtime error: slice bounds out of range [:2] with capacity 0
goroutine 19 [running]:

Add a --debug flag

Even in verbose mode, the output is not always enough for debugging purposes.

A --debug flag would be useful, for instance to print complete request and response to troubleshoot problems.

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.