Skip to content
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

Cross-resource constraints #88

Open
benkehoe opened this issue Mar 18, 2020 · 1 comment
Open

Cross-resource constraints #88

benkehoe opened this issue Mar 18, 2020 · 1 comment

Comments

@benkehoe
Copy link

We're building an S3 bucket notification resource, to solve a long-standing problem. Each item in the notification configuration for a bucket is a separate resource. However, the rules for bucket notifications says they can't overlap in prefix+events. So two resources can share a prefix if they subscribe to different events, or if they share events they can't share a prefix. If someone creates set of resources that violates these constraints, the S3 API call will return an error at some point in the process, which we'll surface to the user. But it got me thinking if these kinds of constraints could be expressed in the schema. It could be something like "uniquePropertySets": {"SomeNameForThis": [ '#/properties/SomeScalarProperty', '#/properties/SomeSetValuedProperty']}

@PatMyron
Copy link
Contributor

PatMyron commented Sep 3, 2020

I think these cross-resource references are all we have planned for the near future

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

No branches or pull requests

2 participants