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

Only include json files as registry schemas #3150

Merged
merged 2 commits into from
Apr 18, 2024

Conversation

benbridts
Copy link
Contributor

This is a drive-by commit:

  • I have not tested this
  • I'm solving my issue by moving files around

But I ran into this when I had a README.md in my folder with schemas. I added the isfile to prevent .git folders from being found by listdir.

The if not f.endswith(".json") might break people, I think the isfile is safe.

To code is trivial, so feel free to close this issue if you plan to implement only part (or none) of it

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@kddejong kddejong merged commit 67e6bc2 into aws-cloudformation:main Apr 18, 2024
20 of 21 checks passed
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.

2 participants