Currently adding/changing/removing a 'default' is not detected. **V1** ``` schema: type: integer ``` **V2 (with 'default' added)** ``` schema: type: integer default: -1 ``` Same with changing/removing it.
Activity
joschi commentedon Mar 4, 2023
@michael-schnell Thanks for reporting this!
I think adding a default for a property is a compatible change and removing it is a breaking change.
What do you think?
michael-schnell commentedon Mar 4, 2023
This is difficult. I guess this depends on where the default is located (request or response) and what kind of change it is.
This means that the default only matters when
nullable: true.Response (Backward compatibility required)
Request (Forward compatibility required)
DrSatyr commentedon Jan 30, 2025
So "default" changes detection is fixed in the scope of #717, marked as duplicate and closed.
But PR #718 assumes these changes as compatible. So will add this issue to the Discussion to consider @michael-schnell previous comment.