-
Notifications
You must be signed in to change notification settings - Fork 351
Open
Labels
FeatureRequestNew feature or requestNew feature or requestNeedsDesignFunctionality seems desirable, but not sure how it should look like.Functionality seems desirable, but not sure how it should look like.
Description
Hello CUE team,
As a maintainer for the FINOS Common Cloud Controls (CCC) project, I’d like to propose a feature that would enable YAML files to optionally declare the schema they are intended to validate against. This would greatly benefit projects like ours that use CUE to enforce compliance and quality controls our CI/CD pipelines.
Problem Statement
In our workflows, we use CUE to validate YAML files against defined schemas as part of pre-merge and pre-release checks. However, because YAML lacks a native way to declare which schema it adheres to, we are forced to hardcode schema mappings externally or apply the same schema across multiple files. This approach that doesn’t scale well and is error-prone for our use case.
Benefits
- Enables schema-aware tooling and automation (e.g., schema selection in CI)
- Improves clarity and maintainability of YAML-based control files
- Aligns with similar concepts like $schema in JSON Schema
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FeatureRequestNew feature or requestNew feature or requestNeedsDesignFunctionality seems desirable, but not sure how it should look like.Functionality seems desirable, but not sure how it should look like.