Skip to content

x-ms-dynamic-values schema is dropped when moving from parameters to request body loading openapi for excel connector #706

@tomlm

Description

@tomlm

When loading this definition
foo.txt

This path /drives/{drive}/files/{file}/tables/{table}/items/{id}
The Patch operationId PatchItem somehow loses the reference to the x-ms-dynamic-schema attribute.
The V2 json has Operation.Parameters entry like this:

 {
            "name": "item",
            "in": "body",
            "description": "Provide the item properties.",
            "required": true,
            "schema": {
              "$ref": "#/definitions/Item"
            },
            "x-ms-summary": "Provide the item properties"
          },

With the /definitions/Item looking like this:

"Item": {
      "description": "Table item entity",
      "type": "object",
      "properties": {
        "dynamicProperties": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/definitions/Object"
          }
        }
      },
      "additionalProperties": {
        "$ref": "#/definitions/Object"
      },
      "x-ms-dynamic-schema": {
        "operationId": "GetTable",
         ...
      }
    },

But the deserialized OpenApiOperation doesn't have any links or references to the x-ms-dynamic-schema data.

  1. The Parameters doesn't have the "item" property defined (presumbly because it is moved to the RequestBody
  2. The RequestBody has a definition with x-bodyName "item" but has dropped the "x-ms-dynamic-schema" metadata
  3. The RequestBody.Content is empty
    image

Metadata

Metadata

Assignees

Labels

invalid-inputpriority:p3Nice to have. Customer impact is very minimaltype:enhancementEnhancement request targeting an existing experience

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions