Git Product home page Git Product logo

Comments (6)

reuvenharrison avatar reuvenharrison commented on June 26, 2024 2

Sure. I'm planning to do it tomorrow.

from oasdiff.

reuvenharrison avatar reuvenharrison commented on June 26, 2024 1

We could output this with a relatively small effort:

endpoints:
    modified:
        ?   method: POST
            path: /example/callback
        :   extensions:
                modified:
                    x-amazon-apigateway-integration:
                        from:
                            connectionId: ${vpc_link_id}
                            connectionType: VPC_LINK
                            httpMethod: POST
                            passthroughBehavior: when_no_match
                            responses:
                                default:
                                    statusCode: "200"
                            type: http_proxy
                            uri: http://api.example.com/v1/example/callback
                        to:
                            connectionId: ${vpc_link_id}
                            connectionType: VPC_LINK
                            httpMethod: POST
                            passthroughBehavior: when_no_match
                            responses:
                                default:
                                    statusCode: "200"
                            type: http_proxy
                            uri: http://api.example.com/v1/example/calllllllllback

Do you think it is good enough?

from oasdiff.

reuvenharrison avatar reuvenharrison commented on June 26, 2024

OpenAPI spec extensions are excluded from the diff.

Including this extension in the diff would require an enhancement.

from oasdiff.

vainkop avatar vainkop commented on June 26, 2024

OpenAPI spec extensions are excluded from the diff.

Including this extension in the diff would require an enhancement.

That's exactly what I've tried to request :)
Currently I have to use colordiff on top of oasdiff which kind of makes oasdiff not that useful as it could be & AWS API Gateways are pretty popular.

Unfortunately I don't have enough time & Golang expertise to implement that enhancement myself :(

from oasdiff.

vainkop avatar vainkop commented on June 26, 2024

We could output this with a relatively small effort:
Do you think it is good enough?

That's definitely better than "No changes"! :)

Of course I'd prefer to see smth like that:

 endpoints:
     modified:
         ?   method: POST
             path: /example/callback
         :   extensions:
                 modified:
                     x-amazon-apigateway-integration:
         -                 uri: http://api.example.com/v1/example/callback
         +                 uri: http://api.example.com/v1/example/calllllllllback

from oasdiff.

vainkop avatar vainkop commented on June 26, 2024

@reuvenharrison thank you!
Any chance of adding that into a release any time soon?

from oasdiff.

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.