json-job
json-job copied to clipboard
`size` attribute requires string parsing.
The company size attribute (size
) is currently specified to have a string "10-50". In order to get minimum and maximum company size, that string must be split and parsed which seems unreasonable for a machine-readable spec.
Suggest something like:
"companySize": {
"min": 10,
"max": 50,
}
Or possible "from" and "to", if it should be consistent with other attributes.
I was thinking about it. You don't really need to know exact number and it changes a lot. Ideally, you want is an enum. I'll look into json schema enums.