Skip to content
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

Predefined variables #81

Closed
alexandrehtrb opened this issue Feb 29, 2024 · 1 comment
Closed

Predefined variables #81

alexandrehtrb opened this issue Feb 29, 2024 · 1 comment
Assignees
Labels
good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed

Comments

@alexandrehtrb
Copy link
Owner

alexandrehtrb commented Feb 29, 2024

https://learning.postman.com/docs/writing-scripts/script-references/variables-list/

Examples:

  • {{$guid}}: 611c2e81-2ccb-42d8-9ddc-2d0bfa65c1b4
  • {{$now}}, {{$isoTimestamp}}: 2020-06-09T21:10:36.177Z (no time zone specified; GMT +0h)
  • {{$today}}: 2020-06-09
  • {{$randomInt}}
  • {{$randomFullName}}

Files to be changed: IPororocaVariableResolver (and unit tests) + JSONC_pororoca.tmLanguage.json (for variable highlighting, pororocavar regex)

@alexandrehtrb alexandrehtrb added help wanted Extra attention is needed good first issue Good for newcomers hacktoberfest labels Feb 29, 2024
@alexandrehtrb alexandrehtrb self-assigned this May 27, 2024
@alexandrehtrb alexandrehtrb changed the title Use variable functions for random values Predefined variables May 28, 2024
@alexandrehtrb
Copy link
Owner Author

Solved on release 3.4.0

If you have ideas for more predef variables, please comment here or open a PR (code in file PororocaPredefinedVariableEvaluator.cs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant