Skip to content

Commit

Permalink
[FLINK-25807][rest][docs] Deduplicate fields that only differ by nami…
Browse files Browse the repository at this point in the history
…ng convention
  • Loading branch information
zentol authored Jan 28, 2022
1 parent 5527cfb commit e2f609c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 0 additions & 3 deletions docs/static/generated/rest_v1_dispatcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1681,9 +1681,6 @@ components:
$ref: '#/components/schemas/IOMetricsInfo'
taskmanager-id:
type: string
start_time:
type: integer
format: int64
JobResult:
type: object
properties:
Expand Down
8 changes: 8 additions & 0 deletions flink-runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ under the License.
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-swagger</artifactId>
<version>15.0</version>
<!-- Only required at compile-time; only flink-docs needs it at runtime -->
<optional>true</optional>
</dependency>

<!-- optional dependency on Hadoop, so that Hadoop classes are not always pulled in -->

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonCreator;
import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.v3.oas.annotations.Hidden;

import javax.annotation.Nullable;

import java.util.Objects;
Expand Down Expand Up @@ -74,6 +76,7 @@ public class SubtaskExecutionAttemptDetailsInfo implements ResponseBody {
@JsonProperty(FIELD_NAME_START_TIME)
private final long startTime;

@Hidden
@JsonProperty(FIELD_NAME_COMPATIBLE_START_TIME)
private final long startTimeCompatible;

Expand Down

0 comments on commit e2f609c

Please sign in to comment.