Skip to content

Converting :values range to enum #235

Closed
@azhi

Description

@azhi

Exctacted from #233 and #234

Converting :values ranges to enums (arrays) in docs might not be the best idea.
It may lead to poor performance and huge JSON docs in case of large ranges.

I think the proper solution would be not to convert ranges to enums at all. However, this feature was in the release and some people might be using it.

Also we could try some dirty hack like convert to an array only if Range#size is less then some amount (say, 50). But that seems very odd to me.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions