Create Mail endpoint is missing minimum and maximum lengths
Bug
https://esi.evetech.net/characters/{character_id}/mail
The documentation at https://developers.eveonline.com/api-explorer#/operations/PostCharactersCharacterIdMail does not include maximum length for the subject and body field. The values should be 150 characters for subject and 8000 characters for body.
Minimum length is also missing, presumed to be >= 1.
For reference, recipients does have limitations >= 1 items and <= 50 items documented.
Issue can be transferred to esi-issues, as it relates to ESI docs, which are out of scope for this repo, as weird as it sounds given the name of this repo for third party development docs. @steven-noorbergen
This was a bug in the conversion from Swagger to OpenAPI, and is now corrected.
However, your values do not match with the one in the specs. Subject should be <= 1000 chars, and body <= 10000 chars. So I will have to check what are actually the correct values :)
@ccp-pinky
ESI enforces a limit of max 10000 characters, but this does not seem to match in-game, where the limit is 8000. Trying to send a mail with 9999 characters results in the following:
The window opens successfully, but the body is cut at 8597 characters (and the game UI shows it as being over the 8000 limit).
Also, it seems the in-game window is counting characters in some non-standard way. For example, when you send this string:
<url=opportunity:freelance_projects:563055f7-fd34-469e-a3b7-4ffd5e05056e>Mine some ore</url>
It is 93 characters long, but in-game it results in 181 characters being counted: