Skip to content

feat: allow variables to be used globally across endpoints#810

Merged
Pradhvan merged 2 commits intoscanapi:mainfrom
Pradhvan:Issue-265-Global-Variables
Sep 1, 2025
Merged

feat: allow variables to be used globally across endpoints#810
Pradhvan merged 2 commits intoscanapi:mainfrom
Pradhvan:Issue-265-Global-Variables

Conversation

@Pradhvan
Copy link
Copy Markdown
Member

@Pradhvan Pradhvan commented Aug 21, 2025

Description

  • Variables set in one endpoint can now be accessed by sibling endpoints through propagate_spec_vars() and get_all_vars() methods.

Motivation behind this PR?

#265

What type of change is this?

Feature

Checklist

  • A changelog entry was added, or this PR does not require one. Instructions
  • Unit tests were added or updated as needed, or not required for this change. Instructions
  • All unit tests pass locally. Instructions
  • Docstrings or comments were added or updated as needed, or no documentation changes were required. Instructions
  • This PR does not significantly reduce code or docstring coverage.
  • Code follows the project’s style guidelines.
  • ScanAPI was run locally and the changes were manually verified, or this was not necessary. Instructions
  • Commits were squashed, or squashing was not necessary (e.g., only one commit). Instructions

Issue

Closes: #265

Co-authored-by: @gabrieltron joaog.trombeta@gmail.com

@Pradhvan Pradhvan marked this pull request as ready for review August 21, 2025 13:46
@Pradhvan Pradhvan requested review from a team as code owners August 21, 2025 13:46
@Pradhvan Pradhvan mentioned this pull request Aug 21, 2025
8 tasks
@Pradhvan Pradhvan requested a review from camilamaia August 21, 2025 13:48
- Variables set in one endpoint can now be accessed by
  sibling endpoints through propagate_spec_vars() and
  get_all_vars() methods.

  Co-authored-by: João Gabriel Trombeta <joaog.trombeta@gmail.com>

Closes: scanapi#265
@Pradhvan Pradhvan force-pushed the Issue-265-Global-Variables branch from 51c3867 to 08eaf39 Compare August 21, 2025 14:00
Copy link
Copy Markdown
Member

@camilamaia camilamaia left a comment

Choose a reason for hiding this comment

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

💯

@Pradhvan
Copy link
Copy Markdown
Member Author

Pradhvan commented Sep 1, 2025

Comment on the main PR: #265 (comment)

Also lemme know when it's good to merge the PR.

Copy link
Copy Markdown

@Riverfount Riverfount left a comment

Choose a reason for hiding this comment

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

Greate job!

@Pradhvan Pradhvan merged commit 5fc4ed6 into scanapi:main Sep 1, 2025
12 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Global Variables

3 participants