-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
annotations: allow URL pointer to JSON schema #4478
Comments
@aavarghese @vazirim thoughts on this? 😃 |
This issue has been automatically marked as inactive because it has not had any activity in the last 30 days. |
@anderseknert missed responding to this earlier but this does seem very useful and practical - not all schemas especially Kubernetes related need to be loaded on disk. So +1 for this feature! |
This issue has been automatically marked as inactive because it has not had any activity in the last 30 days. |
So, this is actually possible already, using the undocumented inline format.
As this is about to be both documented, and properly supported ( see #5689 ) I think we're good to close this :) |
Annotations may currently point to a JSON schema on disk, and requires this location to be provided by the tool, e.g.
opa eval
. It would be very handy if we as an alternative to this allowed a schema to be retrieved from an URL pointed out in the annotation.Some thoughts:
opa eval
development cycle can be quite intensive, and you wouldn't want to have the same schema fetched again and again. Additionally, while I doubt this will DDOS any service provider, it would be courteous to not hammer them with requests.The text was updated successfully, but these errors were encountered: