Skip to content

Conversation

@mikeharder
Copy link
Member

@mikeharder mikeharder commented Mar 29, 2024

Example where previous error was insufficient to help spec author: Azure/azure-sdk-tools#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 mikeharder marked this pull request as ready for review April 3, 2024 00:13
throw new Error(stderr)
}
const resolveSwagger = new ResolveSwagger(outputFilePath)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change is just moving this code earlier, and passing map to new ResolveSwagger() so it can include original locations in errors.

@mikeharder
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link

@konrad-jamrozik konrad-jamrozik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left some suggestions on how to make the tests easier to comprehend. Besides, LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

Improve message for error "incompatible properties"

3 participants