Connor

Results 42 comments of Connor

Can anyone provide some insight into whether they've gotten this to work well with a synchronous database connection (I'm using SQLAlchemy ORM) and what it takes to ensure thread-safety?

This also breaks the rest of the syntax highlighting if you then have *nested* blocks. With nested block (broken): Without nested block (not *broken* but also not highlighting the block):

Interesting because this is the opposite problem that other markdown syntax highlighters have, where any "invalid" syntax (e.g. NOT ending a line with a semicolon) will break highlighting for the...

I would also like to see this behavior, mostly just for `setState` and `useRef`. @douglasjunior don't want to get too off-topic, but you might just wanna have a global/singleton/etc. for...

I like this last suggestion @grigi. Though I'm fairly certain `jsonable_encoder` is called whether you have a `response_model` set or not, so it would probably make sense to just call...

For my use-case I'm not using pydantic at all where I want this. I want to be able to return a normal python `dict` and for that to be dumped...

We can do that with `orjson`. ```python import decimal import orjson def default(obj): if isinstance(obj, decimal.Decimal): return str(obj) raise TypeError orjson.dumps(decimal.Decimal("0.0842389659712649442845"), default=default) > b'"0.0842389659712649442845"' ``` Could (should?) then expand this...

I feel like this was mentioned at some point in another issue, but another solution that would work for my use case is being able to specify a parameter in...

If you use `orjson`, it supports natively serializing UUIDs to strings.

Yep, this seems to be a bug but I can't figure out where it is coming from. The `redirect_slashes=False` is definitely being ignored on my end. Starlette is only supposed...