Brendan McCollam

Results 47 comments of Brendan McCollam

@sydney-runkle I've got a [draft PR up](https://github.com/pydantic/pydantic/pull/9484). I'm not quite sure where to add a test for this, since it's only a type-checking issue. Suggestions?

From reading this thread, it sounds like funding and motivation are not the primary stumbling blocks for this project, but it sounds like there is agreement that structured organizational support...

@mar-v-in That's a good point. On the other hand, Google funds other nominal competitors like Mozilla. I assume a massive company like Google isn't all that concerned about a threat...

I ran into it trying to run `pyreverse` on our codebase to generate some PlantUML. The full traceback is as follows: ``` $ pyreverse -a 0 -o plantuml src/ska_oso_pdm/ -c...

If there's interest in this, I've also got something along similar lines [here](https://gitlab.com/ska-telescope/ska-aaa-authhelpers/) ([docs](https://developer.skao.int/projects/ska-aaa-authhelpers/en/latest/)) that uses `joserfc` internally. Re: testing, [there's integration and unit tests](https://gitlab.com/ska-telescope/ska-aaa-authhelpers/-/tree/main/tests) you could crib from if...

I think applying FastAPI's [native `Security` features](https://fastapi.tiangolo.com/reference/dependencies/#fastapi.Security) is desirable because it gives you some nice annotations in the generated OpenAPI spec and enables the "authenticate" button if using interactive SwaggerUI....

I've added [a failing test case in a branch](https://github.com/pydantic/pydantic/compare/main...bjmc:pydantic:json_schema_annotated_defaults?expand=1) that demonstrates something I would expect to work. I was looking at how to fix this, but it's not immediately obvious...

@blakeNaccarato If understand your code correctly, you're silencing/ignoring the "non-serializable-default" warning, and then modifying the schema directly to re-add a stringified version of the `pathlib.Path` default. That might be the...

[`astropy.Quantity`](https://docs.astropy.org/en/stable/units/quantity.html) in my case, but yes, the situation is similar. Users prefer/expect to have vanilla quantity objects, not unusual subclasses or annotated types.

Could this solution be extended to cover [Form() parameters](https://fastapi.tiangolo.com/tutorial/request-forms/) also? We're building an app using [HTMX](https://htmx.org/) that is intended to degrade gracefully in situations without Javascript (so no AJAX, no...