Giter Club home page Giter Club logo

Comments (7)

nicolas-bonnel avatar nicolas-bonnel commented on July 28, 2024 1

Hi,

I had started converting the petstore spec to openapi 3.0 but had not finished. 30 min before you posted this issue, I discovered your project and used it to convert the petstore.json file to openapi 3.0 spec :).

The next version of the petstore.json file in the test folder will be this version converted with your tool.

The converted file now highlight cases that we do not handle, I will work on this and commit updates in few hours.

from vue-openapi.

nicolas-bonnel avatar nicolas-bonnel commented on July 28, 2024 1

Ok, saw the problem in path /store/order/{orderId}.

There is something I'm missing in the spec. Schema seems not mandatory, but parameters should have a default type (string ?).

I didn't see your bug because I added a default schema in preprocessing. I will keep this default schema with a string type until this get more precise in the spec.

from vue-openapi.

MikeRalphson avatar MikeRalphson commented on July 28, 2024

That's very cool. Please do let me know if anything in the converted sample doesn't look right to you.

from vue-openapi.

MikeRalphson avatar MikeRalphson commented on July 28, 2024

Just to make you aware, spotted a (big) bug in the converter. parameter.type has been removed, all parameters now need a schema property if they are typed. Will let you know when examples updated.

from vue-openapi.

MikeRalphson avatar MikeRalphson commented on July 28, 2024

I agree, I think the spec should explicitly define untyped parameters as accepting a string with no defined format restrictions. Defining a schema seems the only way to set a default value etc.

from vue-openapi.

MikeRalphson avatar MikeRalphson commented on July 28, 2024

Converter/validator passing test suite again, as of v1.2.0.

from vue-openapi.

nicolas-bonnel avatar nicolas-bonnel commented on July 28, 2024

Updated the example file using the last version of your converter.

from vue-openapi.

Related Issues (12)

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.