You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is a sample OpenAPI document
if I set openapi 3.1.0 I get the following error Line 35 Callback Object values must be of Path Item Object shape
If I switch back to 3.0.0 everything is fine.
I checked the OpenAPI 3.1 and there are no changes regarding callback
openapi: 3.1.0info:
title: Callback Exampleversion: 1.0.0paths:
/streams:
post:
description: subscribes a client to receive out-of-band dataparameters:
- name: callbackUrlin: queryrequired: truedescription: | the location where data will be sent. Must be network accessible by the source serverschema:
type: stringformat: uriexample: https://tonys-server.comresponses:
'201':
description: subscription successfully createdcontent:
application/json:
schema:
description: subscription informationrequired:
- subscriptionIdproperties:
subscriptionId:
description: this unique identifier allows management of the subscriptiontype: stringexample: 2531329f-fb09-4ef7-887e-84e648214436callbacks:
test :
$ref: '#/components/callbacks/onData'components :
callbacks :
# the name `onData` is a convenience locatoronData:
# when data is sent, it will be sent to the `callbackUrl` provided# when making the subscription PLUS the suffix `/data`'{$request.query.callbackUrl}/data':
post:
requestBody:
description: subscription payloadcontent:
application/json:
schema:
type: objectproperties:
timestamp:
type: stringformat: date-timeuserData:
type: stringresponses:
'202':
description: | Your server implementation should return this HTTP status code if the data was received successfully'204':
description: | Your server should return this HTTP status code if no longer interested in further updates
The text was updated successfully, but these errors were encountered:
this is a sample OpenAPI document
if I set openapi 3.1.0 I get the following error
Line 35 Callback Object values must be of Path Item Object shape
If I switch back to 3.0.0 everything is fine.
I checked the OpenAPI 3.1 and there are no changes regarding callback
The text was updated successfully, but these errors were encountered: