1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Copyright by contributors to this project.
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// Copyright by contributors to this project.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//! Revision-neutral entry points to template validation.
//!
//! The validation pipeline is split into two layers:
//!
//! 1. **This module (`template::validation`)** holds the revision-neutral
//! interface — the [`EffectiveLimits`] and [`EffectiveRules`] types
//! that parameterise the passes, and the top-level
//! [`validate_job_template`] / [`validate_environment_template`]
//! functions that dispatch on the specification revision carried in
//! the [`ValidationContext`].
//!
//! 2. **Revision-specific submodules** (today: `validate_v2023_09`,
//! re-exported via this module's `v2023_09` alias) hold the pass
//! implementations that know about a particular revision's template
//! shape. Future revisions (e.g. `validate_v2027_xx`) will sit
//! alongside, share the revision-neutral interface types, and plug
//! into the dispatch arms in this file.
//!
//! The dispatch arms currently have a single revision, but making the
//! dispatch explicit now is item 9 of the future-revision readiness
//! report: it localizes the one-line change needed when a second
//! revision ships.
use crateModelError;
use crate;
use crate;
// Revision-neutral types and the existing v2023_09 pass implementations
// still live in `validate_v2023_09` for now. Re-export the types so
// consumers of this module (including the decode layer in
// `template::parse`) have a single, revision-neutral import path.
// re-exported as part of the public interface of this module
pub use crate;
/// Validate a job template, dispatching to the per-revision pipeline.
pub
/// Validate an environment template, dispatching to the per-revision
/// pipeline.