Skip to content

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

stupidly-logical
Copy link
Contributor

Description

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

This PR fixes #4884

Sample:
image

@stupidly-logical stupidly-logical changed the title Enable variable tootlip in json request body #4884 Enable variable tootlip in json request body Jun 13, 2025
@stupidly-logical
Copy link
Contributor Author

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';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should avoid hard-coding the mode here, as it affects syntax highlighting behavior.

After this update
Screenshot 2025-06-18 at 8 07 49 PM

Before this update
Screenshot 2025-06-18 at 8 09 02 PM

Copy link
Contributor Author

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?

Copy link
Collaborator

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}}
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checking

@maintainer-bruno maintainer-bruno force-pushed the feat/enable_req_var_tootlip branch from e6b2eae to a8db38c Compare June 19, 2025 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Environment Variable tooltip doesn't appear in json request body
3 participants