Skip to content

Commit 420e651

Browse files
committed
Fixes serialization of base64 encoded values.
1 parent 15e22a9 commit 420e651

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/readme.graph.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,11 @@ directive:
259259
- from: 'openapi-document'
260260
where: $.components.schemas.ReferenceUpdate..properties['@odata.id']
261261
transform: $['description'] = 'The entity reference URL of the resource. For example, https://graph.microsoft.com/v1.0/directoryObjects/{id}.'
262+
# Fix Base64 serialization.
263+
- from: 'openapi-document'
264+
where: $.components.schemas..properties.*
265+
transform: >-
266+
if ($.format === 'base64url') { $['format'] = 'byte' }
262267
# Mark consistency level parameter as required for /$count paths when header is present.
263268
- from: openapi-document
264269
where: $..paths.*[?(/(.*_GetCount)/gmi.exec(@.operationId))]..parameters[?(@.name === "ConsistencyLevel")]

0 commit comments

Comments
 (0)