Repository navigation
Add OpenAPI spec support for policy schema creation - #105
Merged
Merged
Conversation
gemanor
reviewed
Apr 17, 2025
gemanor
left a comment
Collaborator
There was a problem hiding this comment.
This needs some more work, see comments. Main issues:
- Complex and mostly impossible to test/debug logic in the processor file.
- API calls made through the
fetchUtiland not theuseClient - Please attach to the PR some YAML/JSON OpenAPI files where we can test it
Co-authored-by: Gabriel Manor <g.e.manor@gmail.com>
Contributor
Author
Repo :: https://github.com/daveads/openapispec |
gemanor
approved these changes
Apr 24, 2025
daveads
force-pushed
the
feat/openapi-policy-apply
branch
from
April 24, 2025 15:59
9fa48bc to
73e062f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a new command
permit env apply openapithat allows users to create a complete policy schema from an OpenAPI specification file. The command reads x-permit-* extensions from the OpenAPI spec and creates corresponding resources, actions, roles, relations, and URL mappings in the Permit environment.Closes #79