jupyterhub / the-littlest-jupyterhub

Simple JupyterHub distribution for 1-100 users on a single server
https://tljh.jupyter.org
BSD 3-Clause "New" or "Revised" License
1.05k stars 342 forks source link

Fix `cpu` and `memory` config validation in JSON schema #1013

Closed jrdnbradford closed 1 week ago

jrdnbradford commented 1 week ago

Fixes #1012.

The config schema for cpu limits now accepts values such as 3, 3.5 and "None". Added minimums of 0 to prevent negative numerics.

Details on number can be found in the JSON Schema docs.

jrdnbradford commented 1 week ago

I went ahead and fixed the similar issue with the memory limit, which should also allow None.

minrk commented 1 week ago

Thanks!