swagger-api / validator-badge

Validate your Swagger JSON/YAML today!
http://swagger.io
Apache License 2.0
210 stars 85 forks source link

Validator doesn't enforce uniqueness constraint of operationId #40

Open earth2marsh opened 9 years ago

earth2marsh commented 9 years ago

The spec defines operationId as optional, however it must be unique. The validator passes specs that violate that constraint today.

webron commented 9 years ago

@earth2marsh - the validator only performs schema validation right now and nothing more. There are dozens of invalid uses cases that would pass the validator and that works as initially planned. Changing the behavior would be great, but I can't say if/when that would happen.