Code Monkey home page Code Monkey logo

Comments (3)

MikeRalphson avatar MikeRalphson commented on June 6, 2024

This appears to be a limitation of AWS's description format, which contains many assumptions and 'magic' rather than being a purely declarative format such as OpenAPI. The shape "NoSuchKey" is not defined and the key "404" appears nowhere in the S3 description file. It doesn't even seem possible to programmatically deduce this from the SDK code.

This is basically a best-effort conversion, I don't have the time to maintain a set of patches on top of the raw conversions, though I might accept them if someone contributed them.

maybe we don't need to include all error responses here?

I'm not sure I understand why we wouldn't include as much information as we can from the input format?

from aws2openapi.

Xuanwo avatar Xuanwo commented on June 6, 2024

From my point of view (I'm doing some code generation by this spec), an object {} means nothing for me and I have to workaround this by ignore self defined 480 statue code. Instead of expanding this magic to users, maybe eliminate them at specs side is a better solution?

from aws2openapi.

MikeRalphson avatar MikeRalphson commented on June 6, 2024

I'm not convinced. {} is the empty schema and allows everything. Why do you have to remove the dummy error codes? We want to indicate these errors are possible, even if we cannot (yet) map them fully.

from aws2openapi.

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.