• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

/usr/lib/swipl/library/ext/json/json_schema.pl
All Application Manual Name SummaryHelp

  • ext
    • json
      • json.pl
      • json_grammar.pl -- JavaScript grammar
      • json_convert.pl -- Convert between JSON terms and Prolog application terms
      • json_rpc_client.pl -- JSON RPC client
      • json_rpc_common.pl
      • json_rpc_server.pl
      • json_schema.pl -- JSON Schema reader and validator
        • json_validate/3
        • json_compile_schema/3
        • json_check/3
 json_validate(+SchemaFile, +DataDict, +Options) is det
Given a file holding a JSON Schema and a Prolog dict holding JSON data, validate the data against the schema. Options are passed to json_compile_schema/3 and json_check/3.
throws
- error(Formal, json_path(Path)), where Path is a list of properties from the root element to the culprit element. Formal is typically a type, domain or existence error. This file contains the message hooks to generate a human readable error from these exceptions using print_message/2.
ClioPatria (version V3.1.1-59-g7b9a7a3)