Skip to content

Conversation

@Laren-AWS
Copy link
Contributor

This PR makes SDK validation more flexible, which lets us load SDKs defined by tributaries and validate them without requiring updates to schemas in this repo.

  • Check SDK names (language fields) in examples against the dynamically loaded list of SDKs instead of enforcing the static list from the yamale schema.
  • Pass the strict flag to the SDK validator and when it is False, allow non-entity name fields.
  • Add a --config flag to validate so that a tributary can pass its config path to the validator. When this path is passed, the validator first loads default config (services, SDKs, etc.), then loads and merges the tributary config. In this way, the tributary validates its examples using the combined set of root + local config.

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

@Laren-AWS Laren-AWS requested review from DavidSouther and cpyle0819 and removed request for DavidSouther February 27, 2025 23:15
@Laren-AWS Laren-AWS self-assigned this Feb 27, 2025
@Laren-AWS Laren-AWS added the Task A general update to the code base for language clarification, missing actions, tests, etc. label Feb 27, 2025
@Laren-AWS Laren-AWS added the Enhancement A general update to the code base. label Feb 27, 2025
@Laren-AWS Laren-AWS merged commit e51bb78 into main Feb 28, 2025
2 of 3 checks passed
@Laren-AWS Laren-AWS deleted the feat/dynamic-sdk-validation branch February 28, 2025 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement A general update to the code base. Task A general update to the code base for language clarification, missing actions, tests, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants