commonism

Results 106 comments of commonism

I updated the document with the changes required.

Hi, to me your approach is basically valid. [requests.Request](https://github.com/psf/requests/blob/005571d1180835eb5266a3fdbdbe8fdae57d90c2/src/requests/models.py#L258-L270) class does not have a `.cert` property, it get's added by openapi3 when mutualTLS is requested. The (client cert/key tuple) has...

c.f. https://github.com/commonism/aiopenapi3/blob/master/tests/fixtures/schema-recursion.yaml

Using aiopenapi3 instead, there is still some issues with the jira api description document. It - defines enums for an array type (NotImplementedError) - members of the discriminated unions do...

You are basically asking for a client which accepts invalid description documents. ms/kiota: ``` docker run -v ${PWD}:/app/output mcr.microsoft.com/openapi/kiota \ generate --language python --openapi https://dac-static.atlassian.com/cloud/jira/platform/swagger-v3.v3.json ``` Number of warnings/errors: ```...

josepy is not great wrt. documentation or test-coverage, python-jose may do better in testing but documentation is not an improvement. I guess something like https://github.com/spulec/moto (… easily mock out tests...

I think having the accepted property names in model_extra: Union[set[str],dict[str,str]] might be convenient. Ideas: `Config.extra = pydantic.Extra.accept` - do not expose unknown properties via `__getattr__`, just `__getitem__` `Config.extra: Callable[[str, Any],...

That's even more than I asked for and exactly what OpenAPI needs. I'd go with it.

I had a look on commit https://github.com/pydantic/pydantic/commit/517161d61284df9089ddea738df7f9aa236da03e It's accompanied by model_extra - it's an improvement for sure and will lift some limitations (e.g. `schema: {}`) As I'm within the requirements...

Required for OpenAPI mutualTLS authentication - e.g. FastAPI/starlette/hypercorn.