Skip to content

Add support for additionalProperties in inline object #41

@isc-tstolker

Description

@isc-tstolker

After fixing #32 I found that there is still a case not addressed.
For some reason, the following inline response is not flattened, causing the generator to not genereate anything for a 200 response:

    "/internal/network/v1/diagnostics/peers":{
      "get":{
        "tags":[
          "diagnostics"
        ],
        "summary":"Gets diagnostic information about the node's peers",
        "operationId":"getPeerDiagnostics",
        "responses":{
          "200":{
            "description":"Successfully retrieved peers diagnostics",
            "content":{
              "application/json":{
                "schema":{
                  "type":"object",
                  "additionalProperties":{
                    "$ref":"#/components/schemas/PeerDiagnostics"
                  }
                }
              }
            }
          },
          "default":{
            "$ref":"../common/error_response.yaml"
          }
        }
      }
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions