Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

ServerlessError: Documentation part already exists while deploying Serverless AWS apigateway #168

Open
rsolank1 opened this issue Nov 13, 2020 · 1 comment

Comments

@rsolank1
Copy link

rsolank1 commented Nov 13, 2020

I am getting [ServerlessError: Documentation part already exists] while deployment when I have updated the version in documentation object from version:"8.0.2" to version:"9.0.1".

serverlessError1
serverlessError2

But it succeed when run deployment again by updating version in documentation object from version:"9.0.1" to version:"9.0.2".

`

custom:
  documentation:
    api:
      info:
        version: "9.0.2"
        title: "Mock APIs"
        description: "Mock Apis for my new project"

I am unable to understand how serverless-aws-documentation versioning is working while deploying on API Gateway.

@rsolank1
Copy link
Author

rsolank1 commented Dec 23, 2020

Serverless_aws_documentation

apigateway

It doesn't matter what limit we set for the getdocumentationparts because AWS does not return more than 500 records per single time.
so when second time we run deployment remaining part also get deleted hence it works in second time.
also its not dependent on our versioning, because documentation version is the hashcode of whole custome_documentation object and documentation parts. That's how it compares the versions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant