OpenAPI - Need some help building an example operation with query object properties
Hi,
I need some help to build an example operation using query object properties. Here is my openapi file example :
openapi: 3.0.1
info:
title: Test
description: Test management API
version: 1.3.0
tags:
- name: Test
description: Test management
paths:
/users:
get:
tags:
- Users
summary: Users by filters
description: |
Get users by filters
operationId: getUsersByFilters
parameters:
- name: filters
in: query
description: Users.
required: false
schema:
type: object
properties:
filters:
type: object
properties:
accountId:
type: string
example: '00000001'
groupId:
type: string
example: '00002'
local:
type: string
example: 'FR'
examples:
get-users:
value:
- accountId: "00000001"
- groupId: "00001"
- local: "FR"
responses:
200:
description: User
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/User'
examples:
get-promise:
value:
accountId: "00000001"
group: "Test"
I would like to build a mock url like : http://localhost:8080/rest/Test/1.3.0/users?filters[accountId]=0000001&filters[groupId]=00002&filters[local]=FR.
But I get : http://localhost:8080/rest/Test/1.3.0/users?filters=[{"accountId":"00000001"},{"groupId":"00001"},{"local":"FR"}]
Any idea ?
Thanks
Hi @dorianbrun, I think this is related to #154 - a long time opened issue. I think our model is too simple for the moment to handle such cases.
This issue has been automatically marked as stale because it has not had recent activity :sleeping:
It will be closed in 30 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.
There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. Microcks is a Cloud Native Computing Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.
Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.
Thank you for your patience :heart: