Git Product home page Git Product logo

Comments (9)

jlprat avatar jlprat commented on August 26, 2024 1

Good to see you here @ilke-zilci!

from akka-http.

ilke-zilci avatar ilke-zilci commented on August 26, 2024

Hey, I'd like to take this one, is anyone working on it already?

from akka-http.

ktoso avatar ktoso commented on August 26, 2024

No, seems no one has picked it up yet, thanks for looking into it! :)
(Feel free to ask if not sure about things with it etc)

from akka-http.

jrudolph avatar jrudolph commented on August 26, 2024

I agree, might be a good starting contribution!

However, I find the ticket description a bit unclear. I think it's about using parameter("age".as(xyzUnmarshaller)) and this xyzUnmarshaller throws an exception? Do you remember if that was the case here, @ktoso?

In that case, this code here seems to convert the exception into a rejection: https://github.com/akka/akka-http/blob/master/akka-http/src/main/scala/akka/http/scaladsl/server/directives/ParameterDirectives.scala#L115

It should probably be documented in the documentation of the parameters directive here: https://github.com/akka/akka-http/blob/master/docs/src/main/paradox/scala/http/routing-dsl/directives/parameter-directives/parameters.md

from akka-http.

ktoso avatar ktoso commented on August 26, 2024

Yes, it was about that; AFAIR someone expected "well it's an exception so should be an error page!", but indeed there we interpret it as "well, unable to extract, let's try another one", so as a rejection :)

from akka-http.

ilke-zilci avatar ilke-zilci commented on August 26, 2024

Great! I will work on it then. It goes here, right? https://github.com/akka/akka-http/blob/master/docs/src/main/paradox/scala/http/routing-dsl/rejections.md

from akka-http.

jlprat avatar jlprat commented on August 26, 2024

As @jrudolph mentioned, I would document it next to the Path Parameter documentation pages (https://github.com/akka/akka-http/blob/master/docs/src/main/paradox/scala/http/routing-dsl/directives/parameter-directives/parameters.md) and then link to the rejection doc page as a "see for further info".

And don't forget to document it for both Scala and Java docs :)

from akka-http.

ilke-zilci avatar ilke-zilci commented on August 26, 2024

Ok thanks. And sorry missed that line on the first read.

from akka-http.

jrudolph avatar jrudolph commented on August 26, 2024

Fixed in #1285.

from akka-http.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.