Skip to content

Instantly share code, notes, and snippets.

@wroge
Last active May 29, 2020 10:22
Show Gist options
  • Select an option

  • Save wroge/3b27b875976c9d57dd2580196208779e to your computer and use it in GitHub Desktop.

Select an option

Save wroge/3b27b875976c9d57dd2580196208779e to your computer and use it in GitHub Desktop.
SurveyJS OpenAPI 3.0.0 Definition
components:
schemas:
AnswerCountValidator:
properties:
maxCount:
maximum: 255
minimum: 0
type: integer
minCount:
maximum: 255
minimum: 0
type: integer
type:
enum:
- answercountvalidator
type: string
required:
- type
type: object
Any:
oneOf:
- $ref: '#/components/schemas/Scalar'
- items:
$ref: '#/components/schemas/Any'
type: array
- $ref: '#/components/schemas/AnyObject'
AnyObject:
additionalProperties:
$ref: '#/components/schemas/Any'
type: object
Boolean:
allOf:
- $ref: '#/components/schemas/Question'
- required:
- name
- type
properties:
defaultValue:
oneOf:
- enum:
- indeterminate
- type: boolean
label:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
name:
format: string
type: string
showTitle:
type: boolean
type:
enum:
- boolean
type: string
valueFalse:
$ref: '#/components/schemas/Scalar'
valueTrue:
$ref: '#/components/schemas/Scalar'
type: object
CalculatedValue:
properties:
expression:
format: string
type: string
includeIntoResult:
type: boolean
name:
format: string
type: string
required:
- name
- expression
type: object
Checkbox:
allOf:
- $ref: '#/components/schemas/QuestionCheckboxBase'
- required:
- name
- type
properties:
hasNone:
type: boolean
hasSelectAll:
type: boolean
name:
format: string
type: string
noneText:
format: string
type: string
selectAllText:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
type:
enum:
- checkbox
type: string
type: object
Comment:
allOf:
- $ref: '#/components/schemas/Question'
- required:
- name
- type
properties:
cols:
minimum: 0
type: number
maxLength:
minimum: 0
type: number
name:
format: string
type: string
placeHolder:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
rows:
minimum: 0
type: number
type:
enum:
- comment
type: string
type: object
CopyValueTrigger:
properties:
expression:
format: string
type: string
fromName:
format: string
type: string
setToName:
format: string
type: string
type:
enum:
- copyvalue
type: string
required:
- expression
- type
- setToName
- fromName
type: object
Currency:
enum:
- AED
- AFN
- ALL
- AMD
- ANG
- AOA
- ARS
- AUD
- AWG
- AZN
- BAM
- BBD
- BDT
- BGN
- BHD
- BIF
- BMD
- BND
- BOB
- BOV
- BRL
- BSD
- BTN
- BWP
- BYN
- BZD
- CAD
- CDF
- CHE
- CHF
- CHW
- CLF
- CLP
- CNY
- COP
- COU
- CRC
- CUC
- CUP
- CVE
- CZK
- DJF
- DKK
- DOP
- DZD
- EGP
- ERN
- ETB
- EUR
- FJD
- FKP
- GBP
- GEL
- GHS
- GIP
- GMD
- GNF
- GTQ
- GYD
- HKD
- HNL
- HRK
- HTG
- HUF
- IDR
- ILS
- INR
- IQD
- IRR
- ISK
- JMD
- JOD
- JPY
- KES
- KGS
- KHR
- KMF
- KPW
- KRW
- KWD
- KYD
- KZT
- LAK
- LBP
- LKR
- LRD
- LSL
- LYD
- MAD
- MDL
- MGA
- MKD
- MMK
- MNT
- MOP
- MRO
- MUR
- MVR
- MWK
- MXN
- MXV
- MYR
- MZN
- NAD
- NGN
- NIO
- NOK
- NPR
- NZD
- OMR
- PAB
- PEN
- PGK
- PHP
- PKR
- PLN
- PYG
- QAR
- RON
- RSD
- RUB
- RWF
- SAR
- SBD
- SCR
- SDG
- SEK
- SGD
- SHP
- SLL
- SOS
- SRD
- SSP
- STD
- SVC
- SYP
- SZL
- THB
- TJS
- TMT
- TND
- TOP
- TRY
- TTD
- TWD
- TZS
- UAH
- UGX
- USD
- USN
- UYI
- UYU
- UZS
- VEF
- VND
- VUV
- WST
- XAF
- XAG
- XAU
- XBA
- XBB
- XBC
- XBD
- XCD
- XDR
- XOF
- XPD
- XPF
- XPT
- XSU
- XTS
- XUA
- XXX
- YER
- ZAR
- ZMW
- ZWL
type: string
Dropdown:
allOf:
- $ref: '#/components/schemas/QuestionSelectBase'
- required:
- name
- type
properties:
choicesMax:
maximum: 255
minimum: 0
type: integer
choicesMin:
maximum: 255
minimum: 0
type: integer
choicesStep:
default: 1
maximum: 255
minimum: 0
type: integer
name:
format: string
type: string
optionsCaption:
format: string
type: string
showOptionsCaption:
type: boolean
type:
enum:
- dropdown
type: string
type: object
Element:
oneOf:
- allOf:
- $ref: '#/components/schemas/MatrixDropdown'
- not:
anyOf:
- $ref: '#/components/schemas/Matrix'
- $ref: '#/components/schemas/MatrixDynamic'
- $ref: '#/components/schemas/Checkbox'
- $ref: '#/components/schemas/Radiogroup'
- $ref: '#/components/schemas/ImagePicker'
- $ref: '#/components/schemas/Dropdown'
- $ref: '#/components/schemas/Expression'
- $ref: '#/components/schemas/Text'
- $ref: '#/components/schemas/MultipleText'
- $ref: '#/components/schemas/PanelDynamic'
- $ref: '#/components/schemas/Panel'
- $ref: '#/components/schemas/Html'
- $ref: '#/components/schemas/Empty'
- $ref: '#/components/schemas/Comment'
- $ref: '#/components/schemas/File'
- $ref: '#/components/schemas/Rating'
- $ref: '#/components/schemas/Boolean'
- allOf:
- $ref: '#/components/schemas/Matrix'
- not:
anyOf:
- $ref: '#/components/schemas/MatrixDropdown'
- $ref: '#/components/schemas/MatrixDynamic'
- $ref: '#/components/schemas/Checkbox'
- $ref: '#/components/schemas/Radiogroup'
- $ref: '#/components/schemas/ImagePicker'
- $ref: '#/components/schemas/Dropdown'
- $ref: '#/components/schemas/Expression'
- $ref: '#/components/schemas/Text'
- $ref: '#/components/schemas/MultipleText'
- $ref: '#/components/schemas/PanelDynamic'
- $ref: '#/components/schemas/Panel'
- $ref: '#/components/schemas/Html'
- $ref: '#/components/schemas/Empty'
- $ref: '#/components/schemas/Comment'
- $ref: '#/components/schemas/File'
- $ref: '#/components/schemas/Rating'
- $ref: '#/components/schemas/Boolean'
- allOf:
- $ref: '#/components/schemas/MatrixDynamic'
- not:
anyOf:
- $ref: '#/components/schemas/MatrixDropdown'
- $ref: '#/components/schemas/Matrix'
- $ref: '#/components/schemas/Checkbox'
- $ref: '#/components/schemas/Radiogroup'
- $ref: '#/components/schemas/ImagePicker'
- $ref: '#/components/schemas/Dropdown'
- $ref: '#/components/schemas/Expression'
- $ref: '#/components/schemas/Text'
- $ref: '#/components/schemas/MultipleText'
- $ref: '#/components/schemas/PanelDynamic'
- $ref: '#/components/schemas/Panel'
- $ref: '#/components/schemas/Html'
- $ref: '#/components/schemas/Empty'
- $ref: '#/components/schemas/Comment'
- $ref: '#/components/schemas/File'
- $ref: '#/components/schemas/Rating'
- $ref: '#/components/schemas/Boolean'
- allOf:
- $ref: '#/components/schemas/Checkbox'
- not:
anyOf:
- $ref: '#/components/schemas/MatrixDropdown'
- $ref: '#/components/schemas/Matrix'
- $ref: '#/components/schemas/MatrixDynamic'
- $ref: '#/components/schemas/Radiogroup'
- $ref: '#/components/schemas/ImagePicker'
- $ref: '#/components/schemas/Dropdown'
- $ref: '#/components/schemas/Expression'
- $ref: '#/components/schemas/Text'
- $ref: '#/components/schemas/MultipleText'
- $ref: '#/components/schemas/PanelDynamic'
- $ref: '#/components/schemas/Panel'
- $ref: '#/components/schemas/Html'
- $ref: '#/components/schemas/Empty'
- $ref: '#/components/schemas/Comment'
- $ref: '#/components/schemas/File'
- $ref: '#/components/schemas/Rating'
- $ref: '#/components/schemas/Boolean'
- allOf:
- $ref: '#/components/schemas/Radiogroup'
- not:
anyOf:
- $ref: '#/components/schemas/MatrixDropdown'
- $ref: '#/components/schemas/Matrix'
- $ref: '#/components/schemas/MatrixDynamic'
- $ref: '#/components/schemas/Checkbox'
- $ref: '#/components/schemas/ImagePicker'
- $ref: '#/components/schemas/Dropdown'
- $ref: '#/components/schemas/Expression'
- $ref: '#/components/schemas/Text'
- $ref: '#/components/schemas/MultipleText'
- $ref: '#/components/schemas/PanelDynamic'
- $ref: '#/components/schemas/Panel'
- $ref: '#/components/schemas/Html'
- $ref: '#/components/schemas/Empty'
- $ref: '#/components/schemas/Comment'
- $ref: '#/components/schemas/File'
- $ref: '#/components/schemas/Rating'
- $ref: '#/components/schemas/Boolean'
- allOf:
- $ref: '#/components/schemas/ImagePicker'
- not:
anyOf:
- $ref: '#/components/schemas/MatrixDropdown'
- $ref: '#/components/schemas/Matrix'
- $ref: '#/components/schemas/MatrixDynamic'
- $ref: '#/components/schemas/Checkbox'
- $ref: '#/components/schemas/Radiogroup'
- $ref: '#/components/schemas/Dropdown'
- $ref: '#/components/schemas/Expression'
- $ref: '#/components/schemas/Text'
- $ref: '#/components/schemas/MultipleText'
- $ref: '#/components/schemas/PanelDynamic'
- $ref: '#/components/schemas/Panel'
- $ref: '#/components/schemas/Html'
- $ref: '#/components/schemas/Empty'
- $ref: '#/components/schemas/Comment'
- $ref: '#/components/schemas/File'
- $ref: '#/components/schemas/Rating'
- $ref: '#/components/schemas/Boolean'
- allOf:
- $ref: '#/components/schemas/Dropdown'
- not:
anyOf:
- $ref: '#/components/schemas/MatrixDropdown'
- $ref: '#/components/schemas/Matrix'
- $ref: '#/components/schemas/MatrixDynamic'
- $ref: '#/components/schemas/Checkbox'
- $ref: '#/components/schemas/Radiogroup'
- $ref: '#/components/schemas/ImagePicker'
- $ref: '#/components/schemas/Expression'
- $ref: '#/components/schemas/Text'
- $ref: '#/components/schemas/MultipleText'
- $ref: '#/components/schemas/PanelDynamic'
- $ref: '#/components/schemas/Panel'
- $ref: '#/components/schemas/Html'
- $ref: '#/components/schemas/Empty'
- $ref: '#/components/schemas/Comment'
- $ref: '#/components/schemas/File'
- $ref: '#/components/schemas/Rating'
- $ref: '#/components/schemas/Boolean'
- allOf:
- $ref: '#/components/schemas/Expression'
- not:
anyOf:
- $ref: '#/components/schemas/MatrixDropdown'
- $ref: '#/components/schemas/Matrix'
- $ref: '#/components/schemas/MatrixDynamic'
- $ref: '#/components/schemas/Checkbox'
- $ref: '#/components/schemas/Radiogroup'
- $ref: '#/components/schemas/ImagePicker'
- $ref: '#/components/schemas/Dropdown'
- $ref: '#/components/schemas/Text'
- $ref: '#/components/schemas/MultipleText'
- $ref: '#/components/schemas/PanelDynamic'
- $ref: '#/components/schemas/Panel'
- $ref: '#/components/schemas/Html'
- $ref: '#/components/schemas/Empty'
- $ref: '#/components/schemas/Comment'
- $ref: '#/components/schemas/File'
- $ref: '#/components/schemas/Rating'
- $ref: '#/components/schemas/Boolean'
- allOf:
- $ref: '#/components/schemas/Text'
- not:
anyOf:
- $ref: '#/components/schemas/MatrixDropdown'
- $ref: '#/components/schemas/Matrix'
- $ref: '#/components/schemas/MatrixDynamic'
- $ref: '#/components/schemas/Checkbox'
- $ref: '#/components/schemas/Radiogroup'
- $ref: '#/components/schemas/ImagePicker'
- $ref: '#/components/schemas/Dropdown'
- $ref: '#/components/schemas/Expression'
- $ref: '#/components/schemas/MultipleText'
- $ref: '#/components/schemas/PanelDynamic'
- $ref: '#/components/schemas/Panel'
- $ref: '#/components/schemas/Html'
- $ref: '#/components/schemas/Empty'
- $ref: '#/components/schemas/Comment'
- $ref: '#/components/schemas/File'
- $ref: '#/components/schemas/Rating'
- $ref: '#/components/schemas/Boolean'
- allOf:
- $ref: '#/components/schemas/MultipleText'
- not:
anyOf:
- $ref: '#/components/schemas/MatrixDropdown'
- $ref: '#/components/schemas/Matrix'
- $ref: '#/components/schemas/MatrixDynamic'
- $ref: '#/components/schemas/Checkbox'
- $ref: '#/components/schemas/Radiogroup'
- $ref: '#/components/schemas/ImagePicker'
- $ref: '#/components/schemas/Dropdown'
- $ref: '#/components/schemas/Expression'
- $ref: '#/components/schemas/Text'
- $ref: '#/components/schemas/PanelDynamic'
- $ref: '#/components/schemas/Panel'
- $ref: '#/components/schemas/Html'
- $ref: '#/components/schemas/Empty'
- $ref: '#/components/schemas/Comment'
- $ref: '#/components/schemas/File'
- $ref: '#/components/schemas/Rating'
- $ref: '#/components/schemas/Boolean'
- allOf:
- $ref: '#/components/schemas/PanelDynamic'
- not:
anyOf:
- $ref: '#/components/schemas/MatrixDropdown'
- $ref: '#/components/schemas/Matrix'
- $ref: '#/components/schemas/MatrixDynamic'
- $ref: '#/components/schemas/Checkbox'
- $ref: '#/components/schemas/Radiogroup'
- $ref: '#/components/schemas/ImagePicker'
- $ref: '#/components/schemas/Dropdown'
- $ref: '#/components/schemas/Expression'
- $ref: '#/components/schemas/Text'
- $ref: '#/components/schemas/MultipleText'
- $ref: '#/components/schemas/Panel'
- $ref: '#/components/schemas/Html'
- $ref: '#/components/schemas/Empty'
- $ref: '#/components/schemas/Comment'
- $ref: '#/components/schemas/File'
- $ref: '#/components/schemas/Rating'
- $ref: '#/components/schemas/Boolean'
- allOf:
- $ref: '#/components/schemas/Panel'
- not:
anyOf:
- $ref: '#/components/schemas/MatrixDropdown'
- $ref: '#/components/schemas/Matrix'
- $ref: '#/components/schemas/MatrixDynamic'
- $ref: '#/components/schemas/Checkbox'
- $ref: '#/components/schemas/Radiogroup'
- $ref: '#/components/schemas/ImagePicker'
- $ref: '#/components/schemas/Dropdown'
- $ref: '#/components/schemas/Expression'
- $ref: '#/components/schemas/Text'
- $ref: '#/components/schemas/MultipleText'
- $ref: '#/components/schemas/PanelDynamic'
- $ref: '#/components/schemas/Html'
- $ref: '#/components/schemas/Empty'
- $ref: '#/components/schemas/Comment'
- $ref: '#/components/schemas/File'
- $ref: '#/components/schemas/Rating'
- $ref: '#/components/schemas/Boolean'
- $ref: '#/components/schemas/Html'
- allOf:
- $ref: '#/components/schemas/Empty'
- not:
anyOf:
- $ref: '#/components/schemas/MatrixDropdown'
- $ref: '#/components/schemas/Matrix'
- $ref: '#/components/schemas/MatrixDynamic'
- $ref: '#/components/schemas/Checkbox'
- $ref: '#/components/schemas/Radiogroup'
- $ref: '#/components/schemas/ImagePicker'
- $ref: '#/components/schemas/Dropdown'
- $ref: '#/components/schemas/Expression'
- $ref: '#/components/schemas/Text'
- $ref: '#/components/schemas/MultipleText'
- $ref: '#/components/schemas/PanelDynamic'
- $ref: '#/components/schemas/Panel'
- $ref: '#/components/schemas/Html'
- $ref: '#/components/schemas/Comment'
- $ref: '#/components/schemas/File'
- $ref: '#/components/schemas/Rating'
- $ref: '#/components/schemas/Boolean'
- allOf:
- $ref: '#/components/schemas/Comment'
- not:
anyOf:
- $ref: '#/components/schemas/MatrixDropdown'
- $ref: '#/components/schemas/Matrix'
- $ref: '#/components/schemas/MatrixDynamic'
- $ref: '#/components/schemas/Checkbox'
- $ref: '#/components/schemas/Radiogroup'
- $ref: '#/components/schemas/ImagePicker'
- $ref: '#/components/schemas/Dropdown'
- $ref: '#/components/schemas/Expression'
- $ref: '#/components/schemas/Text'
- $ref: '#/components/schemas/MultipleText'
- $ref: '#/components/schemas/PanelDynamic'
- $ref: '#/components/schemas/Panel'
- $ref: '#/components/schemas/Html'
- $ref: '#/components/schemas/Empty'
- $ref: '#/components/schemas/File'
- $ref: '#/components/schemas/Rating'
- $ref: '#/components/schemas/Boolean'
- allOf:
- $ref: '#/components/schemas/File'
- not:
anyOf:
- $ref: '#/components/schemas/MatrixDropdown'
- $ref: '#/components/schemas/Matrix'
- $ref: '#/components/schemas/MatrixDynamic'
- $ref: '#/components/schemas/Checkbox'
- $ref: '#/components/schemas/Radiogroup'
- $ref: '#/components/schemas/ImagePicker'
- $ref: '#/components/schemas/Dropdown'
- $ref: '#/components/schemas/Expression'
- $ref: '#/components/schemas/Text'
- $ref: '#/components/schemas/MultipleText'
- $ref: '#/components/schemas/PanelDynamic'
- $ref: '#/components/schemas/Panel'
- $ref: '#/components/schemas/Html'
- $ref: '#/components/schemas/Empty'
- $ref: '#/components/schemas/Comment'
- $ref: '#/components/schemas/Rating'
- $ref: '#/components/schemas/Boolean'
- allOf:
- $ref: '#/components/schemas/Rating'
- not:
anyOf:
- $ref: '#/components/schemas/MatrixDropdown'
- $ref: '#/components/schemas/Matrix'
- $ref: '#/components/schemas/MatrixDynamic'
- $ref: '#/components/schemas/Checkbox'
- $ref: '#/components/schemas/Radiogroup'
- $ref: '#/components/schemas/ImagePicker'
- $ref: '#/components/schemas/Dropdown'
- $ref: '#/components/schemas/Expression'
- $ref: '#/components/schemas/Text'
- $ref: '#/components/schemas/MultipleText'
- $ref: '#/components/schemas/PanelDynamic'
- $ref: '#/components/schemas/Panel'
- $ref: '#/components/schemas/Html'
- $ref: '#/components/schemas/Empty'
- $ref: '#/components/schemas/Comment'
- $ref: '#/components/schemas/File'
- $ref: '#/components/schemas/Boolean'
- allOf:
- $ref: '#/components/schemas/Boolean'
- not:
anyOf:
- $ref: '#/components/schemas/MatrixDropdown'
- $ref: '#/components/schemas/Matrix'
- $ref: '#/components/schemas/MatrixDynamic'
- $ref: '#/components/schemas/Checkbox'
- $ref: '#/components/schemas/Radiogroup'
- $ref: '#/components/schemas/ImagePicker'
- $ref: '#/components/schemas/Dropdown'
- $ref: '#/components/schemas/Expression'
- $ref: '#/components/schemas/Text'
- $ref: '#/components/schemas/MultipleText'
- $ref: '#/components/schemas/PanelDynamic'
- $ref: '#/components/schemas/Panel'
- $ref: '#/components/schemas/Html'
- $ref: '#/components/schemas/Empty'
- $ref: '#/components/schemas/Comment'
- $ref: '#/components/schemas/File'
- $ref: '#/components/schemas/Rating'
type: object
Empty:
allOf:
- $ref: '#/components/schemas/Question'
- required:
- name
- type
properties:
name:
format: string
type: string
type:
enum:
- empty
type: string
type: object
Expression:
allOf:
- $ref: '#/components/schemas/Question'
- required:
- name
- type
properties:
currency:
$ref: '#/components/schemas/Currency'
displayStyle:
enum:
- none
- decimal
- currency
- percent
type: string
expression:
format: string
type: string
format:
format: string
type: string
maximumFractionDigits:
maximum: 255
minimum: 0
type: integer
minimumFractionDigits:
maximum: 255
minimum: 0
type: integer
name:
format: string
type: string
type:
enum:
- expression
type: string
useGrouping:
type: boolean
type: object
ExpressionString:
format: string
type: string
ExpressionValidator:
properties:
expression:
format: string
type: string
type:
enum:
- expressionvalidator
type: string
required:
- type
type: object
File:
allOf:
- $ref: '#/components/schemas/Question'
- required:
- name
- type
properties:
acceptedTypes:
format: string
type: string
allowImagesPreview:
type: boolean
allowMultiple:
type: boolean
imageHeight:
format: string
type: string
imageWidth:
format: string
type: string
maxSize:
minimum: 0
type: number
name:
format: string
type: string
showPreview:
type: boolean
storeDataAsText:
type: boolean
type:
enum:
- file
type: string
waitForUpload:
type: boolean
type: object
Html:
allOf:
- $ref: '#/components/schemas/Question'
- required:
- name
- type
properties:
html:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
name:
format: string
type: string
type:
enum:
- html
type: string
type: object
HtmlConditionItem:
properties:
expression:
format: string
type: string
html:
format: string
type: string
required:
- html
- expression
type: object
ImagePicker:
allOf:
- $ref: '#/components/schemas/QuestionCheckboxBase'
- required:
- name
- type
properties:
contentMode:
enum:
- image
- video
type: string
imageFit:
enum:
- none
- contain
- cover
- fill
type: string
imageHeight:
format: string
type: string
imageWidth:
format: string
type: string
multiSelect:
type: boolean
name:
format: string
type: string
showLabel:
type: boolean
type:
enum:
- imagepicker
type: string
type: object
InputType:
enum:
- color
- date
- datetime
- datetime-local
- email
- month
- number
- password
- range
- tel
- text
- time
- url
- week
type: string
Item:
properties:
text:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
value:
$ref: '#/components/schemas/Any'
required:
- value
type: object
Locale:
enum:
- default
- ar
- bg
- ca
- cz
- da
- de
- en
- es
- fa
- fi
- fr
- gr
- he
- hu
- id
- is
- it
- ja
- ka
- ko
- lt
- lv
- nl
- "no"
- pl
- pt
- ro
- ru
- sv
- tr
- ua
- zh-cn
- zh-tw
type: string
LocaleString:
type: object
Matrix:
allOf:
- $ref: '#/components/schemas/QuestionMatrixBase'
- required:
- name
- type
properties:
isAllRowRequired:
type: boolean
name:
format: string
type: string
rowsOrder:
enum:
- initial
- random
type: string
type:
enum:
- matrix
type: string
type: object
MatrixDropdown:
allOf:
- $ref: '#/components/schemas/MatrixDropdownBase'
- required:
- name
- type
properties:
name:
format: string
type: string
totalText:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
type:
enum:
- matrixdropdown
type: string
type: object
MatrixDropdownBase:
$ref: '#/components/schemas/QuestionMatrixBase'
properties:
cellType:
enum:
- dropdown
- checkbox
- radiogroup
- text
- comment
- boolean
- expression
type: string
choices:
oneOf:
- allOf:
- items:
$ref: '#/components/schemas/Item'
- not:
anyOf:
- items:
format: string
type: string
- allOf:
- items:
format: string
type: string
- not:
anyOf:
- items:
$ref: '#/components/schemas/Item'
type: array
columnColCount:
enum:
- 0
- 1
- 2
- 3
- 4
type: integer
columnLayout:
enum:
- horizontal
- vertical
type: string
columnMinWidth:
format: string
type: string
horizontalScroll:
type: boolean
optionsCaption:
format: string
type: string
type: object
MatrixDynamic:
allOf:
- $ref: '#/components/schemas/MatrixDropdownBase'
- required:
- name
- type
properties:
addRowLocation:
enum:
- default
- top
- bottom
- topBottom
type: string
addRowText:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
confirmDelete:
type: boolean
confirmDeleteText:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
defaultRowValue:
$ref: '#/components/schemas/Scalar'
defaultValueFromLastRow:
type: boolean
keyDuplicationError:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
keyName:
format: string
type: string
maxRowCount:
maximum: 255
minimum: 0
type: integer
minRowCount:
maximum: 255
minimum: 0
type: integer
name:
format: string
type: string
removeRowText:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
rowCount:
maximum: 255
minimum: 0
type: integer
type:
enum:
- matrixdynamic
type: string
type: object
MultipleText:
allOf:
- $ref: '#/components/schemas/Question'
- required:
- name
- type
properties:
colCount:
enum:
- 1
- 2
- 3
- 4
- 5
type: integer
itemSize:
maximum: 255
minimum: 0
type: integer
items:
items:
$ref: '#/components/schemas/Text'
type: array
name:
format: string
type: string
type:
enum:
- multipletext
type: string
type: object
NumericValidator:
properties:
maxValue:
minimum: 0
type: number
minValue:
minimum: 0
type: number
type:
enum:
- numericvalidator
type: string
required:
- type
type: object
Page:
$ref: '#/components/schemas/PanelModelBase'
properties:
maxTimeToFinish:
minimum: 0
type: number
navigationButtonsVisibility:
enum:
- inherit
- show
- hide
type: string
questionsOrder:
enum:
- default
- initial
- random
type: string
type: object
Panel:
allOf:
- $ref: '#/components/schemas/PanelModelBase'
- required:
- name
- type
properties:
indent:
enum:
- 0
- 1
- 2
- 3
type: integer
innerIndent:
enum:
- 0
- 1
- 2
- 3
type: integer
name:
format: string
type: string
page:
$ref: '#/components/schemas/Page'
startWithNewLine:
type: boolean
state:
enum:
- default
- collapsed
- expanded
type: string
type:
enum:
- panel
type: string
type: object
PanelDynamic:
allOf:
- $ref: '#/components/schemas/Question'
- required:
- name
- type
properties:
allowAddPanel:
type: boolean
allowRemovePanel:
type: boolean
confirmDelete:
type: boolean
confirmDeleteText:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
defaultPanelValue:
$ref: '#/components/schemas/Scalar'
defaultValueFromLastPanel:
type: boolean
keyDuplicationError:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
keyName:
format: string
type: string
maxPanelCount:
maximum: 255
minimum: 0
type: integer
minPanelCount:
maximum: 255
minimum: 0
type: integer
name:
format: string
type: string
panelAddText:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
panelCount:
minimum: 0
type: number
panelNextText:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
panelPrevText:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
panelRemoveText:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
panelsState:
enum:
- default
- collapsed
- expanded
- firstExpanded
type: string
renderMode:
enum:
- list
- progressTop
- progressBottom
- progressTopBottom
type: string
showQuestionNumbers:
enum:
- "off"
- onPanel
- "on"
type: string
showRangeInProgress:
type: boolean
templateDescription:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
templateElements:
items:
$ref: '#/components/schemas/Element'
type: array
templateTitle:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
templateTitleLocation:
enum:
- default
- top
- bottom
- left
type: string
type:
enum:
- paneldynamic
type: string
type: object
PanelModelBase:
properties:
description:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
elements:
items:
$ref: '#/components/schemas/Element'
type: array
enableIf:
format: string
type: string
id:
format: string
type: string
isRequired:
type: boolean
questionTitleLocation:
enum:
- default
- top
- bottom
- left
- hidden
type: string
questions:
items:
$ref: '#/components/schemas/Question'
type: array
requiredErrorText:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
title:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
visible:
type: boolean
visibleIf:
format: string
type: string
type: object
Question:
properties:
comment:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
commentText:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
correctAnswer:
$ref: '#/components/schemas/Any'
defaultValue:
$ref: '#/components/schemas/Any'
description:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
descriptionLocation:
enum:
- default
- underInput
- underTitle
type: string
enableIf:
format: string
type: string
fullTitle:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
hasComment:
type: boolean
hideNumber:
type: boolean
id:
format: string
type: string
indent:
enum:
- 0
- 1
- 2
- 3
type: integer
isRequired:
type: boolean
renderWidth:
format: string
type: string
requiredErrorText:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
requiredIf:
format: string
type: string
requiredText:
format: string
type: string
rightIndent:
minimum: 0
type: number
startWithNewLine:
type: boolean
title:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
titleLocation:
enum:
- default
- top
- bottom
- left
- hidden
type: string
useDisplayValuesInTitle:
type: boolean
validators:
items:
$ref: '#/components/schemas/Validator'
type: array
value:
$ref: '#/components/schemas/Any'
valueName:
format: string
type: string
visible:
type: boolean
visibleIf:
format: string
type: string
width:
format: string
type: string
type: object
QuestionCheckboxBase:
$ref: '#/components/schemas/QuestionSelectBase'
properties:
colCount:
minimum: 0
type: number
type: object
QuestionMatrixBase:
$ref: '#/components/schemas/Question'
properties:
columns:
oneOf:
- allOf:
- items:
$ref: '#/components/schemas/Item'
- not:
anyOf:
- items:
format: string
type: string
- allOf:
- items:
format: string
type: string
- not:
anyOf:
- items:
$ref: '#/components/schemas/Item'
type: array
columnsVisibleIf:
format: string
type: string
rows:
oneOf:
- allOf:
- items:
$ref: '#/components/schemas/Item'
- not:
anyOf:
- items:
format: string
type: string
- allOf:
- items:
format: string
type: string
- not:
anyOf:
- items:
$ref: '#/components/schemas/Item'
type: array
rowsVisibleIf:
format: string
type: string
showHeader:
type: boolean
type: object
QuestionSelectBase:
$ref: '#/components/schemas/Question'
properties:
choices:
oneOf:
- allOf:
- items:
$ref: '#/components/schemas/Item'
- not:
anyOf:
- items:
format: string
type: string
- allOf:
- items:
format: string
type: string
- not:
anyOf:
- items:
$ref: '#/components/schemas/Item'
type: array
choicesEnableIf:
format: string
type: string
choicesOrder:
enum:
- none
- asc
- desc
- random
type: string
choicesVisibleIf:
format: string
type: string
otherErrorText:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
otherPlaceHolder:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
otherText:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
storeOthersAsComment:
oneOf:
- enum:
- default
- type: boolean
type: object
Radiogroup:
allOf:
- $ref: '#/components/schemas/QuestionCheckboxBase'
- required:
- name
- type
properties:
name:
format: string
type: string
showClearButton:
type: boolean
type:
enum:
- radiogroup
type: string
type: object
Rating:
allOf:
- $ref: '#/components/schemas/Question'
- required:
- name
- type
properties:
maxRateDescription:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
minRateDescription:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
name:
format: string
type: string
rateMax:
maximum: 255
minimum: 0
type: integer
rateMin:
maximum: 255
minimum: 0
type: integer
rateStep:
maximum: 255
minimum: 0
type: integer
rateValues:
oneOf:
- allOf:
- items:
$ref: '#/components/schemas/Item'
- not:
anyOf:
- items:
format: string
type: string
- allOf:
- items:
format: string
type: string
- not:
anyOf:
- items:
$ref: '#/components/schemas/Item'
type: array
type:
enum:
- rating
type: string
type: object
RegexValidator:
properties:
regex:
format: string
type: string
type:
enum:
- regexvalidator
type: string
required:
- type
type: object
RunExpression:
properties:
runExpression:
format: string
type: string
type:
enum:
- runexpression
type: string
required:
- type
- runExpression
type: object
Scalar:
oneOf:
- type: string
- type: boolean
- type: number
Schema:
properties:
allowCompleteAutomatic:
type: boolean
calculatedValues:
items:
$ref: '#/components/schemas/CalculatedValue'
type: array
checkErrorsMode:
enum:
- onNextPage
- onValueChanged
- onComplete
type: string
clearInvisibleValues:
enum:
- none
- onHidden
- onComplete
type: string
clearValueOnDisableItems:
type: boolean
clientId:
format: string
type: string
commentPrefix:
format: string
type: string
completeText:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
completedBeforeHtml:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
completedHtml:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
completedHtmlOnCondition:
items:
$ref: '#/components/schemas/HtmlConditionItem'
type: array
cookieName:
format: string
type: string
currentPage:
format: string
type: string
currentPageNo:
minimum: 0
type: number
data:
$ref: '#/components/schemas/AnyObject'
description:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
firstPageIsStarted:
type: boolean
focusFirstQuestionAutomatic:
type: boolean
focusOnFirstError:
type: boolean
goNextPageAutomatic:
oneOf:
- enum:
- autogonext
- type: boolean
loadingHtml:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
locale:
$ref: '#/components/schemas/Locale'
logo:
format: string
type: string
logoFit:
enum:
- contain
- none
- cover
- fill
type: string
logoHeight:
minimum: 0
type: number
logoPosition:
enum:
- none
- left
- right
- top
- bottom
type: string
logoWidth:
minimum: 0
type: number
maxOthersLength:
minimum: 0
type: number
maxTextLength:
minimum: 0
type: number
maxTimeToFinish:
minimum: 0
type: number
maxTimeToFinishPage:
minimum: 0
type: number
mode:
enum:
- edit
- display
type: string
navigateToUrl:
format: string
type: string
navigateToUrlOnCondition:
items:
$ref: '#/components/schemas/UrlConditionItem'
type: array
pageNextText:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
pagePrevText:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
pages:
items:
$ref: '#/components/schemas/Page'
type: array
progressBarType:
enum:
- pages
- questions
- correctQuestions
type: string
questionDescriptionLocation:
enum:
- underInput
- underTitle
type: string
questionErrorLocation:
enum:
- top
- bottom
type: string
questionStartIndex:
format: string
type: string
questionTitleLocation:
enum:
- top
- bottom
- left
type: string
questionTitlePattern:
enum:
- numRequireTitle
- numTitleRequire
- requireTitleNum
- requireNumTitle
- titleNumRequire
- titleRequireNum
type: string
questionsOnPageMode:
enum:
- singlePage
- standard
- questionPerPage
type: string
questionsOrder:
enum:
- initial
- random
type: string
requiredText:
format: string
type: string
sendResultOnPageNext:
type: boolean
showCompletedPage:
type: boolean
showInvisibleElements:
type: boolean
showNavigationButtons:
enum:
- none
- top
- bottom
- both
type: string
showPageNumbers:
type: boolean
showPageTitles:
type: boolean
showPrevButton:
type: boolean
showProgressBar:
enum:
- "off"
- top
- bottom
- both
type: string
showQuestionNumbers:
enum:
- "on"
- onPage
- "off"
type: string
showTimerPanel:
enum:
- none
- top
- bottom
type: string
showTimerPanelMode:
enum:
- all
- page
- ""
type: string
showTitle:
type: boolean
startText:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
storeOthersAsComment:
type: boolean
textUpdateMode:
enum:
- onBlur
- onTyping
type: string
title:
oneOf:
- type: string
- $ref: '#/components/schemas/LocaleString'
triggers:
items:
$ref: '#/components/schemas/Trigger'
type: array
type: object
SetValueTrigger:
properties:
setToName:
format: string
type: string
setValue:
$ref: '#/components/schemas/Any'
type:
enum:
- setvalue
type: string
required:
- type
- setToName
- setValue
type: object
Text:
allOf:
- $ref: '#/components/schemas/Question'
- required:
- name
- type
properties:
inputType:
$ref: '#/components/schemas/InputType'
max:
format: string
type: string
maxLength:
minimum: 0
type: number
min:
format: string
type: string
name:
format: string
type: string
placeHolder:
format: string
type: string
size:
maximum: 255
minimum: 0
type: integer
step:
maximum: 255
minimum: 0
type: integer
type:
enum:
- text
type: string
type: object
TextValidator:
properties:
allowDigits:
type: boolean
maxLength:
maximum: 255
minimum: 0
type: integer
minLength:
maximum: 255
minimum: 0
type: integer
type:
enum:
- textvalidator
type: string
required:
- type
type: object
Trigger:
oneOf:
- $ref: '#/components/schemas/SetValueTrigger'
- $ref: '#/components/schemas/CopyValueTrigger'
- $ref: '#/components/schemas/RunExpression'
type: object
UrlConditionItem:
properties:
expression:
format: string
type: string
url:
format: string
type: string
required:
- url
- expression
type: object
Validator:
oneOf:
- $ref: '#/components/schemas/NumericValidator'
- $ref: '#/components/schemas/TextValidator'
- $ref: '#/components/schemas/RegexValidator'
- $ref: '#/components/schemas/ExpressionValidator'
- $ref: '#/components/schemas/AnswerCountValidator'
type: object
info:
title: Generated by cue.
version: no version
openapi: 3.0.0
paths: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment