Skip to content

RequestBody looses parameter name when type is array #378

@toblea

Description

@toblea

When OpenApiV2Deserializer creates RequestBody, the parameter's name when the type is "array".

"put": {
	"tags": [
	  "Users"
	],
	"summary": "Updates a user's list of groups.",
	"description": "Updates the unordered list of group IDs for the specified user.",
	"parameters": [
	  {
		"name": "id",
		"in": "path",
		"description": "The ID of the user.",
		"required": true,
		"type": "string"
	  },
	  {
		"name": "groupIds", // <--------- nowhere to be found
		"in": "body",
		"description": "The unordered list of groups for the specified user.",
		"required": true,
		"schema": {
		  "type": "array",
		  "items": {
			"type": "string"
		  }
		}
	  }
	],
	"responses": { ... }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:enhancementEnhancement request targeting an existing experience

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions