Dean Way

Results 7 comments of Dean Way

Is there a work around here to allow the type checker to treat this as an enum? Currently I'm just using `# type: ignore` on lines that use an Enum...

@ilevkivskyi Thank you! That seems to fix the problem for me

@helgridly T here is a TypeVar, `Type` and `TypeVar` can be imported from typing. Altogether like this: ```python from typing import TypeVar, Type, TYPE_CHECKING if TYPE_CHECKING: from sqlalchemy.sql.type_api import TypeEngine...

@cickes ```python from pydantic import BaseModel from pydantic_jsonapi import JsonApiRequest, JsonApiResponse class Item(BaseModel): name: str quantity: int price: float ITEM_TYPE_NAME = 'item' ItemRequest = JsonApiRequest(ITEM_TYPE_NAME, Item) ItemListResponse = JsonApiResponse(ITEM_TYPE_NAME, Item,...

note that only the response model allows lists for data since the jsonapi spec does not allow list data for creating, updating, or patching resources: https://jsonapi.org/format/#crud-creating

@cickes I added something with a list response to the example: https://github.com/DeanWay/pydantic-jsonapi/pull/22 check it out

> any updates here? It appears that the maintainers of this project have been working on other things, and haven't focused on contributions here in a while. This is waiting...