softwaremill / tapir

Rapid development of self-documenting APIs
https://tapir.softwaremill.com
Apache License 2.0
1.35k stars 409 forks source link

Missing `errorOut` method #3276

Closed jumale closed 10 months ago

jumale commented 11 months ago

Tapir version: 1.8.2

Latest documentation as well as scaladoc of other methods mention the errorOut(???) method. However for me it's not available: Screenshot 2023-10-26 at 12 06 07

Is it outdated docs or do I miss some imports to bring it into the context?

adamw commented 11 months ago

It should be there :)

What's the object that you are trying to call .errorOut on?

adamw commented 10 months ago

I'll close this for now, please reopen if you'd have some code which reproduces the problem.

jumale commented 10 months ago

@adamw thanks for the hint yes it was because of the object type - I tried it on a prepared base endpoint with security logic, which turned it into PartialServerEndpoint:

val baseSecureEndpoint = endpoint.securityIn(???).serverSecurityLogicSuccess(???)

val endpointFoo = baseSecureEndpoint.post.??? // tried to get errorOut here