Peter Schutt
Peter Schutt
This isn't a bug, as DTOs can be defined on layers, and it would be quite restrictive to only allow routes beneath a layer that has a dto defined, to...
> Guards take a `Request` object as first argument, not an `ASGIConnection`. Needs correction throughout the chapter. Just to clarify this point, guards of HTTP routes receive a `Request` object....
Possible implementation: ```py def __repr__(self) -> str: """Exclude fields with values equal to the field default.""" kv_pairs = (f"{f.name}={getattr(self, f.name)!r}" for f in fields(self) if getattr(self, f.name) != f.default) return...
The OpenAPIController does accept a router - the idea being you can configure other handlers, middleware, guards etc and we stick the handlers for the openapi UI on there. If...
Agree it would be nice to have more flexibility with response encoding. I'm not sure about specifying multiple response class types b/c I think this would worsen the UI for...
We took a look at this issue today, and its fairly trivial to set a `Server(url=scope["root_path"])` when the openapi schema is requested via a call to a schema endpoint, if...
> What is the status on this? At risk of stating the obvious, it looks like its waiting on some comments to be resolved and a rebase.
Dealing with tagged unions is definitly in scope for the DTOs. I'd like there to be an interface that is agnostic to the DTO type that handles these. Just like...
I find this a little confusing: > I think that would (should) be considered a hack and is definitely not an intentional public API for this 👀 It is in...
> Hi @CallmeMari , seems @JacobCoffee wasn't able to see your message. By my side, I think he added that additional version because it wasn't included the fix in the...