You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"/admin/export": {
"get": {
"description": "Exports registry data as a ZIP archive.",
"operationId": "exportData",
"parameters": [
{
"description": "Indicates if the operation is done for a browser. If true, the response will be a JSON payload with a property called `href`. This `href` will be a single-use, naked download link suitable for use by a web browser to download the content.",
"in": "query",
"name": "forBrowser",
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"content": {
"application/zip": {
"schema": {
"$ref": "#/components/schemas/FileContent"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/DownloadRef"
}
}
},
...
},
...
},
...
},
...
}
the generated method is:
/** * <p> * Exports registry data as a ZIP archive. * </p> * */@Path("/export")
@GET@Produces({"application/json", "application/zip"})
ResponseexportData(@QueryParam("forBrowser") BooleanforBrowser);
If we reverse the order of the content types:
"/admin/export": {
"get": {
"description": "Exports registry data as a ZIP archive.",
"operationId": "exportData",
"parameters": [
{
"description": "Indicates if the operation is done for a browser. If true, the response will be a JSON payload with a property called `href`. This `href` will be a single-use, naked download link suitable for use by a web browser to download the content.",
"in": "query",
"name": "forBrowser",
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DownloadRef"
}
},
"application/zip": {
"schema": {
"$ref": "#/components/schemas/FileContent"
}
}
},
...
},
...
},
...
},
...
}
the generated method is:
/** * <p> * Exports registry data as a ZIP archive. * </p> * */@Path("/export")
@GET@Produces({"application/json", "application/zip"})
DownloadRefexportData(@QueryParam("forBrowser") BooleanforBrowser);
JSON is semantically equivalent if any of the map keys are reordered, so the generator should always generate the first method.
The text was updated successfully, but these errors were encountered:
Given the following operation:
the generated method is:
If we reverse the order of the content types:
the generated method is:
JSON is semantically equivalent if any of the map keys are reordered, so the generator should always generate the first method.
The text was updated successfully, but these errors were encountered: