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
openapi: 3.0.0info:
title: Campaign (WABA)version: '1.0'paths:
/campaigns:
get:
summary: List Campaignstags: []responses:
'200':
description: OKcontent:
application/json:
schema:
type: objectproperties: {}operationId: get-campaignsparameters:
- schema:
type: stringin: headername: X-waba-phonenumber-iddescription: Phone number id of WABA account to list campaignspost:
summary: Create campaignoperationId: post-campaignsresponses:
'200':
description: OKparameters:
- schema:
type: stringin: headername: X-waba-phonenumber-iddescription: Phone number id of WABA account to list campaignsdescription: Create a campaign for a WABA phone numberrequestBody:
content:
application/json:
schema:
title: ''type: objectproperties:
name:
type: stringdescription: Name of campaignmaxLength: 50minLength: 1pattern: ^[\w\d\-_ ]+required:
- name/jobs:
get:
summary: List jobs (campaign)tags: []responses:
'200':
description: OKcontent:
application/json:
schema:
title: ''type: objectproperties:
status:
type: stringcode:
type: stringmessage:
type: stringdata:
title: ''type: objectrequired:
- count
- next
- previous
- resultsproperties:
count:
type: integernext:
type: stringnullable: trueformat: uriprevious:
type: stringnullable: trueformat: uriresults:
title: ''type: arrayitems:
$ref: '#/components/schemas/Campaign Job'required:
- status
- code
- message
- dataoperationId: get-jobsparameters:
- schema:
type: stringin: headername: X-waba-phonenumber-iddescription: Phone number id of WABA account to list campaignscomponents:
schemas:
Campaign Job:
title: ''type: objectproperties:
name:
type: stringcreated_at:
type: stringformat: date-timescheduled_at:
type: stringformat: date-timecreated_by:
type: stringdescription: UUID of agentaudience:
title: ''type: objectrequired:
- count
- sourceproperties:
count:
type: integersource:
type: stringenum:
- csvcampaign:
title: ''type: objectrequired:
- name
- created_at
- modified_atproperties:
name:
type: stringcreated_at:
type: stringmodified_at:
type: stringstatus:
type: stringenum:
- completed
- failed
- running
- scheduled
- cancelleddelivery_report:
title: ''type: objectrequired:
- running_count
- completed_count
- cancelled_count
- failed_count
- scheduled_countdescription: >- Gives the delivery report for each member of audience, using counter (int)properties:
running_count:
type: integercompleted_count:
type: integercancelled_count:
type: integerfailed_count:
type: integerscheduled_count:
type: integerrequired:
- name
- created_at
- scheduled_at
- created_by
- audience
- campaign
- status
- delivery_reportdescription: Campaign job objectresponses: {}parameters:
Phone number:
name: X-waba-phonenumber-idin: headerrequired: falseschema:
type: stringdescription: Phone number id of WABA account to list campaignsexamples: {}requestBodies: {}headers: {}securitySchemes: {}links: {}callbacks: {}tags: []servers: []
Try adding example to Path > /jobs > Responses (200) and see the error.
Uncaught (in promise) Error: RangeError: Invalid time value
at Date.toISOString (<anonymous>)
at Object.typecast (app.js:2:2968669)
at e (app.js:2:2982196)
at app.js:2:2983540
at Array.forEach (<anonymous>)
at e (app.js:2:2983439)
at Object.l [as object] (app.js:2:2978460)
at e (app.js:2:2982996)
at Object.s [as array] (app.js:2:2974069)
at react-openapi-designer/e (https://codeasashu.github.io/react-openapi-designer/app.js:2:2982996) in /properties/data/properties/results/items/0
at c (app.js:2:2986569)
at m.generateWithContext (app.js:2:3042515)
at m.generate (app.js:2:3042550)
at e.value (app.js:2:1837753)
at app.js:2:1167696
at p (app.js:2:7097990)
at Generator._invoke (app.js:2:7097743)
at Generator.next (app.js:2:7098353)
at w (app.js:2:362596)
at s (app.js:2:362799)
The text was updated successfully, but these errors were encountered:
Given the following openapi yaml file:
Try adding example to
Path > /jobs > Responses (200)
and see the error.The text was updated successfully, but these errors were encountered: