Skip to content
Permalink
Branch: master
Commits on Oct 20, 2019
  1. Merge pull request #389 from julienrf/callbacks-documentation

    julienrf committed Oct 20, 2019
    Support documenting webhooks
  2. Support documenting webhooks

    julienrf committed Oct 18, 2019
    Also group together all documentation related parameters of the `endpoint` constructor in single case class `EndpointDocumentation`
    
    Fixes #385
Commits on Oct 18, 2019
  1. Don’t publish the documentation artifact to Sonatype

    julienrf committed Oct 18, 2019
  2. A few changes to accommodate to sbt-pgp 2.x

    julienrf committed Oct 18, 2019
  3. Merge pull request #374 from scala-steward/update/akka-http-circe-1.29.1

    julienrf committed Oct 18, 2019
    Update akka-http-circe to 1.29.1
  4. Merge pull request #378 from scala-steward/update/akka-http-backend-1…

    julienrf committed Oct 18, 2019
    ….6.8
    
    Update sttp:akka-http-backend, sttp:core to 1.6.8
  5. Merge pull request #383 from scala-steward/update/wiremock-2.25.1

    julienrf committed Oct 18, 2019
    Update wiremock to 2.25.1
  6. Merge pull request #359 from scala-steward/update/sbt-pgp-2.0.0

    julienrf committed Oct 18, 2019
    Update sbt-pgp to 2.0.0
  7. Update akka-http-circe to 1.29.1

    scala-steward committed Oct 18, 2019
Commits on Oct 17, 2019
  1. Fix imports and remove unnecessary setting

    julienrf committed Oct 17, 2019
  2. Merge pull request #372 from scala-steward/update/jwt-play-4.1.0

    julienrf committed Oct 17, 2019
    Update jwt-play to 4.1.0
  3. Merge pull request #366 from scala-steward/update/akka-http-10.1.10

    julienrf committed Oct 17, 2019
    Update akka-http, akka-http-testkit to 10.1.10
  4. Merge pull request #382 from julienrf/feature/document-errors

    julienrf committed Oct 17, 2019
    Add errors produced by endpoints to the documentation interpreter
  5. Merge pull request #384 from scala-steward/update/akka-stream-2.5.26

    julienrf committed Oct 17, 2019
    Update akka-stream to 2.5.26
  6. Update akka-stream to 2.5.26

    scala-steward committed Oct 17, 2019
  7. Merge pull request #375 from scala-steward/update/scalacheck-1.14.2

    julienrf committed Oct 17, 2019
    Update scalacheck to 1.14.2
  8. Merge pull request #376 from scala-steward/update/sbt-sonatype-3.8

    julienrf committed Oct 17, 2019
    Update sbt-sonatype to 3.8
  9. Merge pull request #381 from scala-steward/update/sbt-1.3.3

    julienrf committed Oct 17, 2019
    Update sbt to 1.3.3
  10. Merge pull request #380 from scala-steward/update/circe-core-0.12.2

    julienrf committed Oct 17, 2019
    Update circe-core, circe-generic, ... to 0.12.2
  11. Clean up a few warnings

    julienrf committed Oct 17, 2019
  12. Add errors produced by endpoints to the documentation interpreter

    julienrf committed Oct 16, 2019
    Errors produced by endpoints (ie, client errors, when decoding a request failed, or server errors, when computing the response failed) are now part of the documentation produced by the `openapi` interpreter.
    
    Users can customize the entity format used to serialize the errors.
    
    For the sake of consistency, the `badRequest` response constructor now necessarily has type `Response[ClientErrors]` (so that both errors produced by endpoints and errors produced by the users have the same format). By default, the `ClientErrors` type is fixed to `case class Invalid(errors: Seq[String])`, but this default is opt-out: by using `EndpointsWithCustomErrors` instead of `Endpoints`, users can fix the `ClientErrors` type to be whatever they want (as long as they provide a bidirectional transformation to `Invalid`).
    
    Similarly, the `internalServerError` response constructor now necessarily has type `Response[ServerError]`. By default, `ServerError` is fixed to `Throwable`, and is opt-out.
    
    Fixes #369
Commits on Oct 16, 2019
  1. Update wiremock to 2.25.1

    scala-steward committed Oct 16, 2019
Commits on Oct 14, 2019
  1. Update sbt to 1.3.3

    scala-steward committed Oct 14, 2019
Commits on Oct 7, 2019
  1. Update circe-core, circe-generic, ... to 0.12.2

    scala-steward committed Oct 7, 2019
Commits on Oct 4, 2019
  1. Merge pull request #370 from julienrf/improve-error-reporting

    julienrf committed Oct 4, 2019
    Improve error messages reported by servers
  2. Improve error messages reported by servers

    julienrf committed Sep 27, 2019
    Instead of just returning a Bad Request (400) response with no entity in case of client error, we now return a list of error messages. Fixes #307.
    
    It also standardizes the behavior of the server interpreters: first, they tests whether an incoming request matches a given endpoint definition by checking whether its URL has the same number of segments as the endpoint and if the static segments of the endpoint have the same value in the request URL. Second, the request parameters (dynamic URL segments, query string parameters and header values) are decoded. Third, the request entity is decoded. These three steps are run sequentially: the request parameters are decoded only after the servers have checked that the request matches the endpoint definition, and the request entity is decoded only after the servers have successfully decoded the request parameters. But within a step, the validations are run independently of each others: a request that contains both an invalid path segment and an invalid query string parameter will produce two error messages.
    
    As a consequence, authentication handling has to be done at the level of `Request[A]` instead of `RequestHeaders[A]` (the latter doesn’t anymore have the power of returning an HTTP response). In practice, this means that the `BasicAuthentication` trait now defines a custom `authenticatedRequest` constructor instead of a `basicAuthenticationHeader` constructor.
Commits on Oct 1, 2019
  1. Update sttp:akka-http-backend, sttp:core to 1.6.8

    scala-steward committed Oct 1, 2019
  2. Merge pull request #377 from julienrf/scala-italy-talk

    julienrf committed Oct 1, 2019
    Add Scala Italy talk
  3. Add Scala Italy talk

    julienrf committed Oct 1, 2019
Commits on Sep 28, 2019
  1. Update sbt-sonatype to 3.8

    scala-steward committed Sep 28, 2019
  2. Update scalacheck to 1.14.2

    scala-steward committed Sep 28, 2019
  3. Update akka-http-circe to 1.29.1

    scala-steward committed Sep 28, 2019
  4. Update akka-http, akka-http-testkit to 10.1.10

    scala-steward committed Sep 28, 2019
Older
You can’t perform that action at this time.