-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Enable variable tootlip in json request body #4885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Enable variable tootlip in json request body #4885
Conversation
Requesting review @maintainer-bruno |
@@ -362,7 +367,7 @@ export default class CodeEditor extends React.Component { | |||
} | |||
|
|||
addOverlay = () => { | |||
const mode = this.props.mode || 'application/ld+json'; | |||
const mode = 'text/plain'; |
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.
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.
I see the difference. I am looking into it. Do you have ideas?
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.
@stupidly-logical I've pushed some changes—please have a look when you get a chance.
Just a note: the tooltip for string values was already working. I believe the issue you encountered was due to the {{name}}
variable not being enclosed in double quotes.
My update adds support for non-string values like numbers and booleans.
eg:
{
"username": "{{name}}",
"id": {{number}},
"hasValidPassport": {{boolean}}
}
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.
Checking
e6b2eae
to
a8db38c
Compare
Description
Contribution Checklist:
This PR fixes #4884
Sample:
