Dorthu / openapi3

A Python3 OpenAPI 3 Spec Parser
BSD 3-Clause "New" or "Revised" License
118 stars 47 forks source link

Don't allow duplicate OperationIDs #41

Closed Dorthu closed 3 years ago

Dorthu commented 3 years ago

The OpenaAPI standard says this about operationId

Unique string used to identify the operation. The id MUST be unique among all operations described in the API.

@displague reported that this library was not enforcing that restriction. This change adds a new SpecError case for when operationIds are not unique.