Skip to content

Commit

Permalink
fix: base 64 should be optional in the schema (#19314)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra authored Dec 13, 2023
1 parent 6cb97a6 commit bc4f068
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ee/frontend/mobile-replay/mobile.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ export type wireframeText = wireframeBase & {
export type wireframeImage = wireframeBase & {
type: 'image'
/**
* @description this will be used as base64 encoded image source, with no other attributes it is assumed to be a PNG
* @description this will be used as base64 encoded image source, with no other attributes it is assumed to be a PNG, if omitted a placeholder is rendered
*/
base64: string
base64?: string
}

export type wireframeRectangle = wireframeBase & {
Expand Down
4 changes: 2 additions & 2 deletions ee/frontend/mobile-replay/schema/mobile/rr-mobile-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@
"additionalProperties": false,
"properties": {
"base64": {
"description": "this will be used as base64 encoded image source, with no other attributes it is assumed to be a PNG",
"description": "this will be used as base64 encoded image source, with no other attributes it is assumed to be a PNG, if omitted a placeholder is rendered",
"type": "string"
},
"childWireframes": {
Expand Down Expand Up @@ -382,7 +382,7 @@
"type": "number"
}
},
"required": ["base64", "height", "id", "type", "width", "x", "y"],
"required": ["height", "id", "type", "width", "x", "y"],
"type": "object"
},
"wireframeInput": {
Expand Down

0 comments on commit bc4f068

Please sign in to comment.