Skip to content

Parameters should not have both example and examples properties #91

@irvinesunday

Description

@irvinesunday

Generated OpenAPI doc has both example and examples properties in the parameter section of some operations. This is invalid as they are mutually exclusive. This results in an invalid doc.
See OpenAPI documentation: https://swagger.io/docs/specification/adding-examples/

Assemblies affected

1.0.6

Steps to reproduce

Generate the OpenAPI doc. from the CSDL: https://graph.microsoft.com/v1.0/$metadata
Check the path under operationId: groups.group.GetGroup

Expected result

Within this path, under parameters, there should only be one occurrence of either example or examples

Actual result

There are two occurrences of example and examples

image

Additional detail

Related to: https://github.com/microsoftgraph/microsoft-graph-devx-api/issues/511

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions