RESTful Switch Documentation is wrong

Hi there,

I created a RESTful Switch with a name and a resource and nothing else. I adapted the servers to react to the home assistant default requests.
I burned some time just to find out that the default body for turning on is ON and for turning off is OFF.
Makes sense but the documentation over here https://www.home-assistant.io/components/switch.rest/ says it is true and false.

Please update the documentation.

Good news!

You can make the update!

Good point. I will if it is really wrong. Since I am new I was not sure if there is something I misunderstood. So the question here should be rather is this really a mistake in the docs or did I get something wrong?

https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/switch/rest.py#L28

looks like you are correct.

Is there any python way to generate these docs/values from the code? At least in cases where the docs are describing the code so close.