Skip to content

Conversation

@jcook-stytch
Copy link
Contributor

Description

Adds a local helper method to validate that an Org policy does not contain obvious errors that would result in an error response from the API. Orb requested this and it seems they exclusively use the Python SDK.

@jcook-stytch jcook-stytch requested a review from a team as a code owner January 24, 2026 02:22
Comment on lines +173 to +174
@staticmethod
def validate_org_policy(project_policy: B2BPolicy, org_policy: OrgPolicy) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

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

[dust] Totally fine here, but there are purists that try to avoid ever writing staticmethod under the thought that it should either: [1] be a classmethod that cares about the class in some way or [2] actually belongs as a free function or in another class

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Going to leave this as-is and risk the wrath of sectarian Python violence.

@jcook-stytch jcook-stytch merged commit e28422f into main Jan 26, 2026
7 checks passed
@jcook-stytch jcook-stytch deleted the jcook/AUTH-5952 branch January 26, 2026 18:46
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.

3 participants