Skip to content

Simplify the verification of the path, when a custom one is provided - #89

Merged
alecgeatches merged 2 commits into
trunkfrom
fix/bug-with-the-path
Sep 13, 2024
Merged

Simplify the verification of the path, when a custom one is provided#89
alecgeatches merged 2 commits into
trunkfrom
fix/bug-with-the-path

Conversation

@ingeniumed

@ingeniumed ingeniumed commented Sep 13, 2024

Copy link
Copy Markdown
Contributor

Description

This will simplify the path verification that we do to only check if it ends with .json. There isn't a need to do any of our previous checks because:

  • We ensure that it ends in .json
  • We ensure that it's valid json
  • We ensure that its actually accessible, and exists

This will fix #87.

@ingeniumed ingeniumed self-assigned this Sep 13, 2024
@ingeniumed
ingeniumed requested a review from a team as a code owner September 13, 2024 04:53

@alecgeatches alecgeatches left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great, thank you for making this change quickly!

@alecgeatches
alecgeatches merged commit a2c404c into trunk Sep 13, 2024
@alecgeatches
alecgeatches deleted the fix/bug-with-the-path branch September 13, 2024 18:35
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.

Ensure governance rules can be loaded from non-standard paths

2 participants