jupyterhub / kubespawner

Kubernetes spawner for JupyterHub
https://jupyterhub-kubespawner.readthedocs.io
BSD 3-Clause "New" or "Revised" License
541 stars 303 forks source link

Validete `profile_list` with JSON Schema #736

Open yuvipanda opened 1 year ago

yuvipanda commented 1 year ago

With us adding more options to profile_list, it's growing in complexity. We should validate it with JSON schema like we do with OAuthenticator here: https://github.com/jupyterhub/oauthenticator/blob/921824c02cc9c256674b7daecf481ca67de7c5a0/oauthenticator/cilogon.py#L179

One option is to add a JSONSchemaValidatedDict or similar to the upstream traitlets package and use that. Alternatively, we can just replicate the pattern from OAuthenticator here.