-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Description
The message for error "incompatible properties" only includes the key:
openapi-diff/src/lib/util/resolveSwagger.ts
Lines 247 to 249 in a813782
| if (!this.isEqual(allOfSchema.properties[key], schemaList[key])) { | |
| throw new Error(`incompatible properties : ${key} `) | |
| } |
This can make it hard to determine the problem in the spec, especially if the incompatible property is being pulled in through allOf. For example:
This error could be improved by:
- Include the incompatible properties themselves in the error message
- Include line numbers of the incompatible properties
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
🎊 Closed