uncle-lv
uncle-lv
> This would be a great feature. I hope you're able to add it It seems this issue has been done. [Request examples](https://apiflask.com/request/#request-examples) [Response examples](https://apiflask.com/response/#response-examples)
I have found the reason. When union fields raise errors, [marshmallow_dataclass](https://github.com/lovasoa/marshmallow_dataclass/blob/d6396c18470582a4fe5f0f2bd29ac012da4f0f1f/marshmallow_dataclass/union_field.py#L80) adds the error objects into `errors` directly. But [marshmallow](https://github.com/marshmallow-code/marshmallow/blob/af79a44d3e5453af447cb50d2e345fad0c418738/src/marshmallow/schema.py#L839) hints `errors` should be `dict[str, list[str]]`. marshmallow_dataclass doesn't obey it.
This bug is found in this [issue](https://github.com/apiflask/apiflask/issues/538).
> I started to look into fixing this, but then got confused. > > If we have a union of simple types: > > ```python > from dataclasses import dataclass...
Configure it with the below example code. ```python app.servers = [ { 'url': 'https://api.example.com' } ] ``` See more details in [Configuration](https://apiflask.com/configuration/).
Change `BASE_RESPONSE_DATA_KEY` to ‘result’, because you have specified it to 'result' instead of 'data'.
It has been mentioned in [marshmallow doc](https://marshmallow.readthedocs.io/en/latest/examples.html#inflection-camel-casing-keys) [on_bind_field](https://marshmallow.readthedocs.io/en/stable/examples/inflection.html). The old link has been deprecated. Please click the new link or search with `on_bind_field` keyword.
> It has been mentioned in ~[marshmallow doc](https://marshmallow.readthedocs.io/en/latest/examples.html#inflection-camel-casing-keys)~ [on_bind_field](https://marshmallow.readthedocs.io/en/stable/examples/inflection.html). > > The old link has been deprecated. Please click the new link or search with `on_bind_field` keyword. marshmallow has supported...
I think [this](https://github.com/team23/pydantic-partial) may be helpful. pydantic-partial: https://github.com/team23/pydantic-partial
#591 It may help you. In short, if you use `useTransaction` directly, SAVEPOINT is not supported. It can be supported, [using ktorm with spring](https://www.ktorm.org/en/spring-support.html).