Commit b360801c authored by Mark Canterbury's avatar Mark Canterbury
Browse files

Tweaks

parent 86176945
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
{
{
  "$id": "http://example.com/csp_a/response",
  "$id": "http://example.com/csp_a/response",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Example CSP schema A for ETSI TS 103 705 response",
  "description": "Example extended schema for CSP A. This CSP only ever has one person associated with a subscription - the account holder - and so composes a Subscription record from the ETSI-standard Subscription and PersonDetails entities",
  "description": "Example extended schema for CSP A. This CSP only ever has one person associated with a subscription - the account holder - and so composes a Subscription record from the ETSI-standard Subscription and PersonDetails entities",
  "allOf": [
  "allOf": [
    {
    {
+2 −0
Original line number Original line Diff line number Diff line
import json
from pathlib import Path
+12 −0
Original line number Original line Diff line number Diff line
{
    "$id": "http://etsi.org/temp/705_metaschema",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "ETSI TS 103 705 Response Metaschema",
    "description": "Metaschema for checking that a CSP's Response Schema is per-spec",
    "type:": "object",
    "properties" : {
        "title" : { "type" : "string" },
        "description" : { "type" : "string" }
    },
    "required": ["title", "description"]
}  
 No newline at end of file
+1 −0
Original line number Original line Diff line number Diff line
@@ -88,6 +88,7 @@ if __name__ == "__main__":
                           store=schema_dict)
                           store=schema_dict)
    
    
    v = Draft202012Validator(main_schema, resolver=resolver)
    v = Draft202012Validator(main_schema, resolver=resolver)

    v.validate(instance_doc)
    v.validate(instance_doc)


    logging.info("Done")
    logging.info("Done")
 No newline at end of file