Skip to content

orderby/select/expand should be oneOf when UseStringArrayForQueryOptionsSchema is false #615

Description

@baywet

Currently we describe

parameters:
- name: $selectin: querystyle: formexplode: falseschema:
uniqueItems: truetype: arrayitems:
type: stringenum:
- id
- firstName
- ....

It should instead be

parameters:
- name: $selectin: querystyle: formexplode: falseschema:
uniqueItems: truetype: arrayitems:
oneOf:
- type: string
- type: stringenum:
- id
- firstName
- ....

This is because for any navigation property you can write $select=navProperty($expand=subproperty) and we don't want to project all possibilities. But we don't want to restrict clients to simply the scalar/first level properties.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:p1High priority but not blocking. Causes major but not critical loss of functionality SLA <=7daystype:bugA broken experience

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions