Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add flux dictionaries to the swagger AST specification #20708

Merged
merged 2 commits into from
Feb 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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