Commit Graph

3 Commits

Author SHA1 Message Date
chris48s
b2f47a3303 migrate examples to openApi part 2; affects [archlinux bitcomponents bountysource cdnjs chrome clearlydefined clojars cocoapods coincap] (#9428)
* convert an example that doesn't matter

* migrate some services from examples to openApi

* improve and de-dupe service titles

* revert changes to codefactor
2023-08-08 23:57:47 +00:00
chris48s
14892e3943 Implement a pattern for dealing with upstream APIs which are slow on the first hit; affects [endpoint] (#9233)
* allow serviceData to override cacheSeconds with a longer value

* prevent [endpoint] json cacheSeconds property exceeding service default

* allow ShieldsRuntimeError to specify a cacheSeconds property

By default error responses use the cacheLength of
the service class throwing the error.

This allows error to tell the handling layer the maxAge
that should be set on the error badge response.

* add customExceptions param

This

1. allows us to specify custom properties to pass to the exception
   constructor if we throw any of the standard got errors
   e.g: `ETIMEDOUT`, `ECONNRESET`, etc
2. uses a custom `cacheSeconds` property (if set on the exception)
   to set the response maxAge

* customExceptions --> systemErrors

* errorMessages --> httpErrors
2023-06-13 21:08:43 +01:00
Marc Bernard
ca927fd5d8 Add [ClearlyDefined] service (#6944)
* [ClearlyDefined] New badge

* [ClearlyDefined] New badge

* [ClearlyDefined] New badge

* [ClearlyDefined] New badge

* [ClearlyDefined] New badge

* [ClearlyDefined] New badge

* [ClearlyDefined] New badge

* [ClearlyDefined] New badge

* [ClearlyDefined] New badge

* [ClearlyDefined] New badge

* [ClearlyDefined] New badge

* [ClearlyDefined] New badge

* [ClearlyDefined] New badge

* [ClearlyDefined] New badge

* [ClearlyDefined] New badge

* [ClearlyDefined] New badge

* [ClearlyDefined] New badge

* Add HTTP 500 error message

Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>

* Update error message for test

* Handle incomplete response

* Make file count optional

* Use NotFound

Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-09-29 02:10:01 +00:00