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

bugfix in openapi params #10474

Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ private static PathItem buildListEntityPath(final EntitySpec entity) {
.parameters(
List.of(
new Parameter()
.in(NAME_ASYNC)
.in(NAME_QUERY)
.name("async")
.description("Use async ingestion for high throughput.")
.schema(new Schema().type(TYPE_BOOLEAN)._default(true)),
Expand Down Expand Up @@ -412,7 +412,8 @@ private static Parameter buildParameterSchema(
final Schema schema =
new Schema()
.type(TYPE_ARRAY)
.items(new Schema().type(TYPE_STRING)._enum(aspectNames)._default(aspectNames));
.items(new Schema().type(TYPE_STRING)._enum(aspectNames)
._default(aspectNames.stream().findFirst().orElse(null)));
return new Parameter()
.in(NAME_QUERY)
.name("aspects")
Expand Down
Loading