Skip to content

Commit

Permalink
feat(cli): Add RetryConfig to IR
Browse files Browse the repository at this point in the history
  • Loading branch information
amckinney committed Nov 15, 2024
1 parent d14c499 commit 463f53b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/ir-sdk/fern/apis/ir-types-latest/definition/ir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ types:
readmeConfig: optional<ReadmeConfig>
sourceConfig: optional<SourceConfig>
publishConfig: optional<publish.PublishingConfig>
retryConfig: optional<RetryConfig>

ReadmeConfig:
docs: |
Expand All @@ -80,6 +81,22 @@ types:
If specified, configures the list of endpoints to associate
with each feature.
type: optional<map<commons.FeatureId, list<commons.EndpointId>>>

RetryConfig:
docs: |
The configuration used to generate the default retry policy.
properties:
statusCodes:
docs: |
The status codes to retry on. Note that this is typed as an integer
so that users can configure arbitrary, non-standard HTTP status codes.
In general, this is usually just:
- 408 (Timeout)
- 429 (TooManyRequests)
- 500 (InternalServerError)
type: list<integer>

SourceConfig:
properties:
sources:
Expand Down

0 comments on commit 463f53b

Please sign in to comment.