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

Handler schema definition #1009

Merged
merged 23 commits into from
Jul 31, 2023
Merged

Handler schema definition #1009

merged 23 commits into from
Jul 31, 2023

Conversation

AkifRafique
Copy link
Contributor

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.

Comment on lines 496 to 498
@pytest.mark.skip(
reason="Inline resolver for meta schema is breaking this, disabling for now"
)
Copy link
Contributor

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

value[len(self.META_SCHEMA) :] # noqa: E203
) # noqa: E203
else: # noqa: E203
raise RefResolutionError # noqa: E203
Copy link
Contributor

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

Suggested change
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": {
Copy link
Contributor

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

Copy link
Contributor Author

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.

@AkifRafique AkifRafique merged commit 75bed27 into master Jul 31, 2023
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.

5 participants