Git Product home page Git Product logo

Comments (6)

dpopp07 avatar dpopp07 commented on September 25, 2024 1

Hmm yeah that's an interesting one. Neither would be tough to add and I agree that this should probably be flagged somehow. I'm inclined to lean towards treating the schema as an array due to the presence of the items property, rather than flagging the missing type, but I'm not sure.

@mkistler what do you think?

from openapi-validator.

mkistler avatar mkistler commented on September 25, 2024 1

I won't advocate this as a general rule, but in this particular case, I think we should treat a schema with items as being an array.

from openapi-validator.

jamescooke avatar jamescooke commented on September 25, 2024 1

Thanks 👍 - can confirm this is working great in v0.13.5 https://github.com/IBM/openapi-validator/releases/tag/v0.13.5

from openapi-validator.

dpopp07 avatar dpopp07 commented on September 25, 2024

@jamescooke If you agree with that, I can implement that fix this week

from openapi-validator.

jamescooke avatar jamescooke commented on September 25, 2024

@dpopp07 @mkistler Thanks for reviewing this issue. I'm happy with treating this as an array and giving the "Arrays MUST NOT be returned as the top-level structure in a response body." error 👍

from openapi-validator.

dpopp07 avatar dpopp07 commented on September 25, 2024

🎉 This issue has been resolved in version 0.13.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

from openapi-validator.

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.