Skip to content

Commit

Permalink
chore: add flux dictionaries to the swagger AST specification (#20708)
Browse files Browse the repository at this point in the history

Co-authored-by: jl <22945345+jlapacik@users.noreply.github.com>
  • Loading branch information
danxmoran and jpacik committed Feb 5, 2021
1 parent e1c42b4 commit b3fa930
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -71,6 +71,7 @@ RPM packages, which has been left unchanged.
1. [20672](https://github.com/influxdata/influxdb/pull/20672): Allow for creating users without initial passwords in `influx user create`.
1. [20689](https://github.com/influxdata/influxdb/pull/20689): Fix incorrect "bucket not found" errors when passing `--bucket-id` to `influx write`.
1. [20710](https://github.com/influxdata/influxdb/pull/20710): Fix loading config when `INFLUXD_CONFIG_PATH` points to a directory with `.` in its name.
1. [20708](https://github.com/influxdata/influxdb/pull/20708): Update API spec to document Flux dictionary features.

## v2.0.3 [2020-12-14]
----------------------
Expand Down
22 changes: 22 additions & 0 deletions http/swagger.yml
Expand Up @@ -6749,6 +6749,7 @@ components:
Expression:
oneOf:
- $ref: "#/components/schemas/ArrayExpression"
- $ref: "#/components/schemas/DictExpression"
- $ref: "#/components/schemas/FunctionExpression"
- $ref: "#/components/schemas/BinaryExpression"
- $ref: "#/components/schemas/CallExpression"
Expand Down Expand Up @@ -6781,6 +6782,27 @@ components:
type: array
items:
$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:
description: Function expression
type: object
Expand Down

0 comments on commit b3fa930

Please sign in to comment.