diff --git a/metadata-service/openapi-servlet/src/main/java/io/datahubproject/openapi/v3/OpenAPIV3Generator.java b/metadata-service/openapi-servlet/src/main/java/io/datahubproject/openapi/v3/OpenAPIV3Generator.java index be02fd9324deed..21910a565a7bb1 100644 --- a/metadata-service/openapi-servlet/src/main/java/io/datahubproject/openapi/v3/OpenAPIV3Generator.java +++ b/metadata-service/openapi-servlet/src/main/java/io/datahubproject/openapi/v3/OpenAPIV3Generator.java @@ -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)), @@ -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")