Git Product home page Git Product logo

Comments (2)

a-akimov avatar a-akimov commented on June 20, 2024

Hi @geoah, thank you very much for your extensive feedback! We've just added a more detailed specification for additionalData and we are also exploring better ways for displaying it.

  1. You are right, [itemNr] should be replaced with a specific number. The problem here is that this is not a pure array, so this was the only way we saw for describing such elements in a spec. Please let me know if we can do this differently and make it more usable for you.

  2. We will look into this in future updates to the spec.

3 and 4. We didn't describe them before, but it's definitely on our list.

  1. Thanks, we'll fix it. But also please keep in mind that everything in additionalData is a string.

  2. We are planning to add more information about formats in the future.

  3. This is done so because everything is a string in additionalData. Although we can use enums in this case, if this would help.

from adyen-openapi.

a-akimov avatar a-akimov commented on June 20, 2024

With the updated specs today, here is the latest status:

1, 2, 5, 7 - we moved all additionalData-related models from anyOf to x-anyOf. This way we can still represent data in API Explorer and have it in the specification files for reference purposes, but also we don't expect any strict validation/generation happening with these models.

additionalData is now specified like this:

               "additionalData" : {
                  "additionalProperties" : {
                     "type" : "string"
                  },
                  "x-anyOf" : [
                         ...
                  ],
                  "description" : "...",
                  "type" : "object"
               },

Hope this solves all the potential problems with it.

  1. We've added securitySchemas:
      "securitySchemes" : {
         "ApiKeyAuth" : {
            "in" : "header",
            "name" : "X-API-Key",
            "type" : "apiKey"
         },
         "BasicAuth" : {
            "scheme" : "basic",
            "type" : "http"
         }
      },
  1. I've created a separate issue for this: #19

  2. I've created a separate issue for this: #20

@geoah many thanks again for reporting all this. For now, I'm closing this one, but please feel free to re-open or create more, in case you see more room for improving our OpenAPI files.

from adyen-openapi.

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.