chore: add dictionaries to the swagger ast specification

pull/20370/head
jl 2020-12-16 12:09:29 -08:00 committed by jlapacik
parent e278aa4b76
commit baa3fbab7b
1 changed files with 22 additions and 0 deletions

View File

@ -6749,6 +6749,7 @@ components:
Expression: Expression:
oneOf: oneOf:
- $ref: "#/components/schemas/ArrayExpression" - $ref: "#/components/schemas/ArrayExpression"
- $ref: "#/components/schemas/DictExpression"
- $ref: "#/components/schemas/FunctionExpression" - $ref: "#/components/schemas/FunctionExpression"
- $ref: "#/components/schemas/BinaryExpression" - $ref: "#/components/schemas/BinaryExpression"
- $ref: "#/components/schemas/CallExpression" - $ref: "#/components/schemas/CallExpression"
@ -6781,6 +6782,27 @@ components:
type: array type: array
items: items:
$ref: "#/components/schemas/Expression" $ref: "#/components/schemas/Expression"
DictExpression:
description: Used to create and directly specify the elements of a dictionary
type: object
properties:
type:
$ref: "#/components/schemas/NodeType"
elements:
description: Elements of the dictionary
type: array
items:
$ref: "#/components/schemas/DictItem"
DictItem:
description: A key/value pair in a dictionary
type: object
properties:
type:
$ref: "#/components/schemas/NodeType"
key:
$ref: "#/components/schemas/Expression"
val:
$ref: "#/components/schemas/Expression"
FunctionExpression: FunctionExpression:
description: Function expression description: Function expression
type: object type: object