Return true iff source is already in canonical form — i.e. running format on it would produce byte-identical output.
true
source
Useful as a CI gate: walk a tree, call check on each .fbs file, exit non-zero if any return false. The shipped CLI's --check flag is built on this.
check
.fbs
false
--check
The raw .fbs source.
Same options as format. Defaults must match the ones you'd write with, otherwise a "well-formatted" file may falsely report unformatted.
on invalid input (same as format).
Return
trueiffsourceis already in canonical form — i.e. running format on it would produce byte-identical output.Useful as a CI gate: walk a tree, call
checkon each.fbsfile, exit non-zero if any returnfalse. The shipped CLI's--checkflag is built on this.