AARCHMRS Schema 2.5.3

↚ Home

Parameterset array

Parameterset provides a set-like container to store all types of Parameters uniquely identified by their name property.

array

Examples
[
    {
        "_type": "Parameters.Integer", 
        "name": "NUM_VERSIONS", 
        "constraints": [
            {
                "_type": "AST.BinaryOp", 
                "left": {
                    "_type": "AST.BinaryOp", 
                    "left": {
                        "_type": "AST.Identifier", 
                        "value": "NUM_VERSIONS"
                    }, 
                    "op": ">", 
                    "right": {
                        "_type": "AST.Integer", 
                        "value": 23
                    }
                }, 
                "op": "-->", 
                "right": {
                    "_type": "AST.Identifier", 
                    "value": "FEAT_ACTION"
                }
            }
        ], 
        "values": [
            20, 
            {
                "_type": "Index", 
                "start": 22, 
                "end": 25
            }, 
            {
                "_type": "Index", 
                "start": 50, 
                "end": 60
            }, 
            100
        ]
    }, 
    {
        "_type": "Parameters.Boolean", 
        "name": "FEAT_FOO", 
        "constraints": [
            {
                "_type": "AST.BinaryOp", 
                "left": {
                    "_type": "AST.Identifier", 
                    "value": "FEAT_X"
                }, 
                "op": "-->", 
                "right": {
                    "_type": "AST.Identifier", 
                    "value": "v8Ap2"
                }
            }
        ]
    }
]

Schema http://json-schema.org/draft-04/schema#

{
  "additionalItems": false,
  "examples": [
    [
      {
        "_type": "Parameters.Integer",
        "name": "NUM_VERSIONS",
        "constraints": [
          {
            "_type": "AST.BinaryOp",
            "left": {
              "_type": "AST.BinaryOp",
              "left": {
                "_type": "AST.Identifier",
                "value": "NUM_VERSIONS"
              },
              "op": ">",
              "right": {
                "_type": "AST.Integer",
                "value": 23
              }
            },
            "op": "-->",
            "right": {
              "_type": "AST.Identifier",
              "value": "FEAT_ACTION"
            }
          }
        ],
        "values": [
          20,
          {
            "_type": "Index",
            "start": 22,
            "end": 25
          },
          {
            "_type": "Index",
            "start": 50,
            "end": 60
          },
          100
        ]
      },
      {
        "_type": "Parameters.Boolean",
        "name": "FEAT_FOO",
        "constraints": [
          {
            "_type": "AST.BinaryOp",
            "left": {
              "_type": "AST.Identifier",
              "value": "FEAT_X"
            },
            "op": "-->",
            "right": {
              "_type": "AST.Identifier",
              "value": "v8Ap2"
            }
          }
        ]
      }
    ]
  ],
  "info": [
    [
      "$(Parameterset) provides a set-like container to store all types of $(Parameters.)",
      "uniquely identified by their name property."
    ]
  ],
  "items": {
    "oneOf": [
      {
        "$ref": "Parameters/Boolean.json"
      },
      {
        "$ref": "Parameters/Integer.json"
      },
      {
        "$ref": "Parameters/String.json"
      },
      {
        "$ref": "Parameters/Group.json"
      }
    ]
  },
  "title": "Parameterset",
  "type": "array",
  "$schema": "http://json-schema.org/draft-04/schema#"
}