schema_infer: Infer a conservative schema from example data
Description
schema_infer() builds a SchemaDoc from example data using conservative,
structural inference only. It infers base/container check kinds and nested
field structure, but does not guess higher-level authoring constructs such as
$defs, $ref, keys, groups, or combinators.
Strategy for inferring optional keys rules from observed names.
Use "none" to skip names-rule inference, "named" to require named
inputs, "required" to require the observed names to be present, or
"exact" to require the observed names in the observed order.
arrays
Strategy for inferring unnamed lists. Use "none" to keep
unnamed lists generic, or "rest" to infer them as unnamed containers whose
observed element schemas are stored in rest.
Details
To parse an existing schema DSL document, use schema_doc() or
schema_read() instead.