BigSaltyMan/cuesmith/compat does not have a README file
pub(all) enum ChangeKind {
RequiredFieldAdded
FieldRemoved
FieldBecameRequired
TypeNarrowed
EnumValueRemoved
BoundsTightened
RegexTightened
StructClosed
ListLengthTightened
ConstraintAdded
ValueNarrowed
OptionalFieldAdded
FieldBecameOptional
TypeWidened
EnumValueAdded
BoundsWidened
RegexWidened
StructOpened
ListWidened
DefaultChanged
ConstraintRelaxed
ValueWidened
} derive(Eq, Debug)pub(all) struct CompatReport {
compatible : Bool
breaking_count : Int
compatible_count : Int
info_count : Int
old_source : String
new_source : String
changes : Array[SchemaChange]
} derive(Eq, Debug)pub(all) struct DiffOptions {
old_format : SchemaFormat
new_format : SchemaFormat
def_name : String?
old_label : String
new_label : String
limits : EvalLimits
} derive(Eq, Debug)pub(all) struct SchemaChange {
path : Array[String]
severity : ChangeSeverity
kind : ChangeKind
rule_id : String
message : String
old_summary : String
new_summary : String
} derive(Eq, Debug)fn diff_schemas(old_source : String, new_source : String, options? : DiffOptions) -> Result[CompatReport, Array[CueError]]fn diff_values(old_val : Value, new_val : Value, old_label? : String, new_label? : String, limits? : EvalLimits) -> Result[CompatReport, Array[CueError]]fn format_json_bounded(report : CompatReport, max_output_bytes : Int, indent? : Int) -> Result[String, LimitError]fn format_markdown_bounded(report : CompatReport, max_output_bytes : Int) -> Result[String, LimitError]fn format_sarif_bounded(report : CompatReport, max_output_bytes : Int, indent? : Int) -> Result[String, LimitError]Install
Download zipPure MoonBit CUE toolchain with JSON Schema (Draft-07/2020-12 import, Draft 2020-12 export), OpenAPI 3.0/3.1 import, and cross-target LSP.