pub enum SchemaProfile {
Full,
Lean,
}Expand description
Selects how much analyzed contract evidence is emitted as JSON Schema.
Profiles change only emission. They do not change chart analysis or the recovered contract. A reduced profile may remove constraints and therefore widen acceptance, but must never introduce a rejection that the full profile does not.
Variants§
Full
Emits every constraint supported by the schema backend.
Lean
Omits document-level conditional validation while preserving base path and provider constraints.
This profile exists for Helm’s validator, whose schema compilation cost grows superlinearly on large conditional documents.
Implementations§
Source§impl SchemaProfile
impl SchemaProfile
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Stable profile spelling used in serialized policy metadata.
Sourcepub const fn resolved_policy(self) -> ResolvedEmissionPolicy
pub const fn resolved_policy(self) -> ResolvedEmissionPolicy
Resolves this preset into the complete version-1 policy vocabulary.
Trait Implementations§
Source§impl Clone for SchemaProfile
impl Clone for SchemaProfile
Source§fn clone(&self) -> SchemaProfile
fn clone(&self) -> SchemaProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SchemaProfile
Source§impl Debug for SchemaProfile
impl Debug for SchemaProfile
Source§impl Default for SchemaProfile
impl Default for SchemaProfile
Source§fn default() -> SchemaProfile
fn default() -> SchemaProfile
Returns the “default value” for a type. Read more
impl Eq for SchemaProfile
Source§impl From<SchemaProfile> for EmissionSelection
impl From<SchemaProfile> for EmissionSelection
Source§fn from(profile: SchemaProfile) -> EmissionSelection
fn from(profile: SchemaProfile) -> EmissionSelection
Converts to this type from the input type.
Source§impl PartialEq for SchemaProfile
impl PartialEq for SchemaProfile
impl StructuralPartialEq for SchemaProfile
Auto Trait Implementations§
impl Freeze for SchemaProfile
impl RefUnwindSafe for SchemaProfile
impl Send for SchemaProfile
impl Sync for SchemaProfile
impl Unpin for SchemaProfile
impl UnsafeUnpin for SchemaProfile
impl UnwindSafe for SchemaProfile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.