-
Notifications
You must be signed in to change notification settings - Fork 163
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
Handler schema definition #1009
Conversation
tests/test_data_loaders.py
Outdated
@pytest.mark.skip( | ||
reason="Inline resolver for meta schema is breaking this, disabling for now" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, can you root cause it? dont think we should disable it
src/rpdk/core/jsonutils/inliner.py
Outdated
value[len(self.META_SCHEMA) :] # noqa: E203 | ||
) # noqa: E203 | ||
else: # noqa: E203 | ||
raise RefResolutionError # noqa: E203 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you write this, you re-raise the original exception, which gives easier debugging
raise RefResolutionError # noqa: E203 | |
raise |
@@ -4,6 +4,55 @@ | |||
"title": "CloudFormation Resource Provider Definition MetaSchema", | |||
"description": "This schema validates a CloudFormation resource provider definition.", | |||
"definitions": { | |||
"handlerSchema": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whats the difference between this and one linked in this github action? Should we be updating that file instead? Which one is the source?
curl https://raw.githubusercontent.com/aws-cloudformation/aws-cloudformation-resource-schema/master/src/main/resources/schema/provider.definition.schema.v1.json > src/rpdk/core/data/schema/provider.definition.schema.v1.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure what is the difference. @ammokhov do you know?
But I do know that to actually support using this, we need to the change to inliner.py.
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.