When I am updating any swagger defination or any API , APIgateway stages are not getting updated with the changes with each deployment

Tech Stacks:-
APIGateway, Swagger defination to exposed as an API with Lambda in the backend.
In serverless file I have created resource for ‘AWS::ApiGateway::RestApi’ and ‘AWS::ApiGateway::Deployment’. But stages in APIGateway is not getting updated with the latest changes.