uws_post_params_dependency

async safir.uws.uws_post_params_dependency(request)

Parse POST parameters.

UWS requires that all POST parameters be case-insensitive, which is not supported by FastAPI or Starlette. POST parameters therefore have to be parsed by this dependency and then extracted from the resulting UWSJobParameter list (which unfortunately also means revalidating their types).

The POST parameters can also be (and should be) listed independently as dependencies using the normal FastAPI syntax, in order to populate the OpenAPI schema, but unfortunately they all have to be listed as optional from FastAPI’s perspective because they may be present using different capitalization.

Parameters:

request (Request)

Return type:

list[UWSJobParameter]