Azure / openapi-diff

Command line tool to detect breaking changes between two openapi specifications
MIT License
259 stars 36 forks source link

Improve message for error "incompatible properties" #316

Closed mikeharder closed 6 months ago

mikeharder commented 6 months ago

Example where previous error was insufficient to help spec author: https://github.com/Azure/azure-sdk-tools/issues/7917

Old

incompatible properties : bar

New

incompatible properties : bar
  definitions/FooBarString/properties/bar
    at file:///home/user/openapi-diffsrc/test/specs/incompatible-properties.json#L13:8
  definitions/FooBarObject/properties/bar
    at file:///home/user/openapi-diff/src/test/specs/incompatible-properties.json#L26:8
mikeharder commented 6 months ago

/azp run

azure-pipelines[bot] commented 6 months ago
Azure Pipelines successfully started running 1 pipeline(s).