marshmallow-sqlalchemy icon indicating copy to clipboard operation
marshmallow-sqlalchemy copied to clipboard

SQLAlchemy integration with marshmallow

Results 77 marshmallow-sqlalchemy issues
Sort by recently updated
recently updated
newest added

updates: - [github.com/astral-sh/ruff-pre-commit: v0.2.1 → v0.2.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.1...v0.2.2)

I am trying to use `jsonref` in place of the `json` module in a schema so that I can use json references. I have tested the jsonref module and it...

question

I have an API that uses flask_smoest, flask_sqlalchemy and flask_marshmallow to render the API docs. MY database us created using SQL files and documentation for the columns is stored in...

Hi, According to the following code, when we update an instance, whatever we define other fields (not in the Model) in the Schema, these fields will be inserted to the...

question

Marshmallow now has [fields.Enum](https://marshmallow.readthedocs.io/en/stable/marshmallow.fields.html#marshmallow.fields.Enum) from version 3.18. Using this in `ModelConverter.SQLA_TYPE_MAPPING` for enum fields raises exception. ```py class ExtendedModelConverter(ModelConverter): SQLA_TYPE_MAPPING = { **ModelConverter.SQLA_TYPE_MAPPING, Enum: fields.Enum, } ``` Stacktrace: ``` File...

I have a model which uses EnumType from sqlalchemy called `category`. When I try to dump some information in my schema with `Related(column='category')` It throws an error that Enum cannot...

marshmallow 3.18.0 now has native Enum support. This PR updates the `SQLA_TYPE_MAPPING` to use the new field if it is available

In sqlalchemy I can map a collection as a dictionary rather than a list: https://docs.sqlalchemy.org/en/20/orm/collection_api.html#dictionary-collections Is this supported at all by marshmallow-sqlalchemy?

I see in the documentation how to use a different external key when utilizing `auto_field`, is it possible to combine this with `fields.Nested`?

updates: - [github.com/astral-sh/ruff-pre-commit: v0.4.10 → v0.5.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.10...v0.5.0) - [github.com/asottile/blacken-docs: 1.16.0 → 1.18.0](https://github.com/asottile/blacken-docs/compare/1.16.0...1.18.0)