json-job icon indicating copy to clipboard operation
json-job copied to clipboard

`size` attribute requires string parsing.

Open rwe opened this issue 10 years ago • 1 comments

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.

rwe avatar Jan 19 '15 16:01 rwe

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.

lukasz-madon avatar Jan 19 '15 20:01 lukasz-madon