@@ -0,0 +1,1999 @@
+%22%22%22%0AThe simple example using OpenAPI 3.0 callbacks%0A%22%22%22%0A%0Afrom flask import Flask, jsonify%0A%0Afrom flasgger import Swagger%0A%0Aapp = Flask(__name__)%0Aapp.config%5B'SWAGGER'%5D = %7B%0A    'title': 'OA3 Callbacks'%0A%7D%0Aswagger_config = Swagger.DEFAULT_CONFIG%0Aswagger_config%5B'swagger_ui_bundle_js'%5D = '//unpkg.com/swagger-ui-dist@3/swagger-ui-bundle.js'%0Aswagger_config%5B'swagger_ui_standalone_preset_js'%5D = '//unpkg.com/swagger-ui-dist@3/swagger-ui-standalone-preset.js'%0Aswagger_config%5B'jquery_js'%5D = '//unpkg.com/jquery@2.2.4/dist/jquery.min.js'%0Aswagger_config%5B'swagger_ui_css'%5D = '//unpkg.com/swagger-ui-dist@3/swagger-ui.css'%0ASwagger(app, config=swagger_config)%0A%0A@app.route('/run_callback/',  methods=%5B'POST'%5D)%0Adef run_callback():%0A    %22%22%22Example endpoint that specifies OA3 callbacks%0A    This is using docstring for specifications%0A    ---%0A    tags:%0A      - callbacks%0A    requestBody:%0A      description: Test%0A      required: true%0A      content:%0A        application/json:%0A          schema:%0A            properties:%0A              callback_url:%0A                type: string%0A                format: uri%0A                description: Callback URL for request%0A    callbacks:%0A        onSomeEvent:%0A          '%7B$request.body.callback_url%7D':%0A            post:%0A              requestBody:%0A                description: status payload%0A                content:%0A                  application/json:%0A                    schema:%0A                      properties:%0A                        status:%0A                          type: string%0A    %22%22%22%0A%0A    return jsonify(%7B'result': 'ok'%7D)%0A%0A%0Adef test_swag(client, specs_data):%0A    %22%22%22%0A    This test is runs automatically in Travis CI%0A%0A    :param client: Flask app test client%0A    :param specs_data: %7B'url': %7Bswag_specs%7D%7D for every spec in app%0A    %22%22%22%0A    for url, spec in specs_data.items():%0A        assert 'callbacks' in spec%5B'paths'%5D%5B'/run_callback/'%5D%5B'post'%5D%0A        assert 'onSomeEvent' in spec%5B'paths'%5D%5B'/run_callback/'%5D%5B'post'%5D%5B'callbacks'%5D%0A%0A%0Aif __name__ == %22__main__%22:%0A    app.run(debug=True)%0A

Add callbacks test