-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openAPI handler tests migration (#4235)
* some tests * lowercase header fix * add missing Proxy fields * */* access header fix * cookies srtingify fix * test server fix * If additionalProperties is basically type: string, ignore (#4274) * more informative error message * Fix union handling (#4289) * Make arguments related to query params nullable if it is already defined in queryParams (#4290) * Error extensions and fix JSON scalars (#4292) * convert format uuid into UUID scalar * remove type args if provided by operationHeaders * fix for Query.getFields * Do not respect user's accept header if we have a better option (#4272) * Openapi multiple argument sources fix (#4311) * Add a changeset Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Arda TANRIKULU <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
e545ffb
commit b162269
Showing
21 changed files
with
2,492 additions
and
1,255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
"@graphql-mesh/openapi": minor | ||
"@omnigraph/json-schema": minor | ||
"@omnigraph/openapi": minor | ||
--- | ||
|
||
- Support "$request.query" and "$request.path" usages in [OpenAPI runtime expressions](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#runtimeExpression) | ||
- Fix `Field not found` error when an OpenAPI link refers to an operation which is not `Mutation` | ||
- Do not use AJV and check field names in the received object to resolve the type name for a union field | ||
- Fix `queryParams` which allows you to pass query parameters for all operations | ||
- Handle cookie paramters correctly defined in the OpenAPI document by trimming empty values | ||
- Respect the mime types defined in the OpenAPI document. Now it creates a union for each mime type defined in the document, and resolve it by the mime type. | ||
- Respect JSON examples given in the OpenAPI document correctly even if they are strings with JSON content. | ||
- Normalize(lowercase header names) and merge final operation headers correctly from different places `operationHeaders` from the bundle and configuration plus `headers` defined for that specific operation. | ||
|
||
**BREAKING CHANGES:** | ||
|
||
- If a JSON Schema type cannot be represented in GraphQL (object without properties etc.), it will no longer use `Any` type but `JSON` type instead which is a scalar from `graphql-scalars`. | ||
|
||
- Due to the improvements in `healJSONSchema` some of types that are not named in the JSON Schema might be named in a different way. Please make sure the content of the types are correct and report us on GitHub if they are represented incorrectly. | ||
|
||
- UUID format is now represented as `UUID` scalar type which is a scalar from `graphql-scalars`. | ||
|
||
- HTTP Errors are now in a more descriptive way. If your consumer respects them strictly, they will probably need to update their implementation. | ||
|
||
```diff | ||
{ | ||
"url": "http://www.google.com/api", | ||
"method": "GET", | ||
- "status": 401, | ||
+ "statusCode": 401, | ||
+ "statusText": "Unauthorized", | ||
- "responseJson": {} | ||
+ "responseBody": {} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
b162269
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
graphql-mesh – ./
graphql-mesh-azure.vercel.app
graphql-mesh-theguild.vercel.app
www.graphql-mesh.com
graphql-mesh-git-master-theguild.vercel.app
graphql-mesh.com