poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JSON Schema


From: Jose E. Marchesi
Subject: Re: JSON Schema
Date: Fri, 29 May 2020 19:16:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

        "Method" : {
          "type" : "object",
          "properties" : {
            "name" : {
              "type" : "object",
              "$ref" : "#/definitions/String"
            },
            "value" : {
              "type" : "object",
              "$ref" : "#/definitions/Closure"
            }
          }
        },
        [...]
        "Closure" : {
          "type" : "object",
          "properties" : {
            "type" : {
              "type" : "string",
              "const" : "Closure"
            },
          },
          "$comment" : "maxProperties 1 for now",
          "maxProperties" : 1,
          "required" : ["type"]
        },

I don't think it is a good idea to export the notion of closure in the
JSON interface, since we don't have an useful way to describe their
components: the associated PVM program and the run-time environment.  I
suggest to remove them from the schema.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]