Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-31316 FLIP-291: Externalized Declarative Resource Management
  3. FLINK-31383

Add support for documenting additionProperties of the REST API payloads.

    XMLWordPrintableJSON

Details

    Description

      For implementing the request and response body of the resource requirements endpoint, we need to be able to document "additionalProperties" because these payloads have only top-level dynamic properties of the same type.

      This affects both classic (HTML docs) and OpenAPI generators.

      An example of what we want to be able to document is:

      @JsonAnySetter
      @JsonAnyGetter
      @JsonSerialize(keyUsing = JobVertexIDKeySerializer.class)
      @JsonDeserialize(keyUsing = JobVertexIDKeyDeserializer.class)
      private final Map<JobVertexID, JobVertexResourceRequirements> jobVertexResourceRequirements;

      Attachments

        Issue Links

          Activity

            People

              dmvk David Morávek
              dmvk David Morávek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: