1.2.2 Predicates
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog JSON library
        • Supporting JSON
          • library(json_schema): JSON Schema reader and validator
            • Predicates
              • json_validate/3
              • json_compile_schema/3
              • json_check/3
Availability::- use_module(library(json_schema)).(can be autoloaded)
Source[det]json_compile_schema(+Input, -Type, +Options)
Load and translated a JSON Schema. Input is either a file name, a specification for absolute_file_name/3 or the output of json_read_dict/2.

If Input is a file name, the loaded and compiled schema is cached. Reusing the cache validates the modification file of the schema file and reloads it if the file's time stamp has changed. Note that true and false are valid schemas and cannot be used as file names.