Verify self-contained schema preparation and submission
This commit is contained in:
@@ -213,7 +213,8 @@ func WithSchemaFS(fsys fs.FS, root string) Option {
|
||||
//
|
||||
// Prompt schema_path values refer to the file's base name. path must name an
|
||||
// existing non-directory file when NewEngine applies the option. This option
|
||||
// replaces Config.SchemaDir and earlier schema-source options.
|
||||
// replaces Config.SchemaDir and earlier schema-source options. The selected
|
||||
// schema must be self-contained; external resources are not loaded.
|
||||
func WithSchemaFile(path string) Option {
|
||||
return optionFunc(func(options *engineOptions) error {
|
||||
return options.internal.SetSchemaFile(path)
|
||||
|
||||
Reference in New Issue
Block a user