Forum Discussion

shynakansal18's avatar
2 months ago

Open APi Spec - Defining a query param

Hi 

We have a requirement to define a query param which is not in the format of key=value.

its something like ?expand[{fieldName}[]. Where fieldname is dynamic value entered by user. Is there a way to define this in openApi Specification?

1 Reply

  • Hi there! OpenAPI does not natively support query parameters in expand[{fieldName}[] format. 

     You can consider moving it to a path parameter if applicable - "/example/expand/{fieldName}"