packages feed

hydra-kernel-0.18.1: hydra-kernel-json/hydra/core/json/model.json

{
  "name": "hydra.core.json.model",
  "metadata": {
    "description": "A JSON syntax model. See the BNF at https://www.json.org",
    "comments": [],
    "seeAlso": [],
    "provisions": []},
  "dependencies": [],
  "definitions": [
    {
      "type": {
        "name": "hydra.core.json.model.JsonWriterOptions",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "compact",
                    "type": {
                      "annotated": {
                        "body": {"literal": "boolean"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {
                                "literal": {
                                  "string": "Whether to omit all insignificant whitespace. When true, the value is rendered on a single line with no space after ':' or ',' and the indent, maxLineWidth, and maxIndentDepth fields are ignored."}}}]}}}},
                  {
                    "name": "indent",
                    "type": {
                      "annotated": {
                        "body": {"literal": "string"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The string used to indent each level of nesting when pretty-printing"}}}]}}}},
                  {
                    "name": "maxLineWidth",
                    "type": {
                      "annotated": {
                        "body": {"literal": {"integer": "int32"}},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {
                                "literal": {
                                  "string": "The maximum estimated line width before an object or array breaks onto multiple lines. Ignored when compact is true."}}}]}}}},
                  {
                    "name": "maxIndentDepth",
                    "type": {
                      "annotated": {
                        "body": {"optional": {"literal": {"integer": "int32"}}},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {
                                "literal": {
                                  "string": "The nesting depth at or beyond which objects and arrays are always rendered inline, regardless of estimated width. Depth 0 is the top-level value, so maxIndentDepth = 0 renders the entire value on one line. None means no depth-based limit. Ignored when compact is true."}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {"literal": {"string": "Layout options for hydra.core.json.writer.printJsonWith"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.json.model.Value",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "union": [
                  {
                    "name": "array",
                    "type": {
                      "annotated": {
                        "body": {"list": {"variable": "hydra.core.json.model.Value"}},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A JSON array"}}}]}}}},
                  {
                    "name": "boolean",
                    "type": {
                      "annotated": {
                        "body": {"literal": "boolean"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A boolean value"}}}]}}}},
                  {
                    "name": "null",
                    "type": {
                      "annotated": {
                        "body": "unit",
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "JSON's null value"}}}]}}}},
                  {
                    "name": "number",
                    "type": {
                      "annotated": {
                        "body": {"literal": "decimal"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A numeric value"}}}]}}}},
                  {
                    "name": "object",
                    "type": {
                      "annotated": {
                        "body": {"list": {"pair": {"first": {"literal": "string"}, "second": {"variable": "hydra.core.json.model.Value"}}}},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {
                                "literal": {
                                  "string": "A JSON object as an ordered list of key/value pairs. The ordering preserves the declaration order of the record from which the object was encoded, rather than alphabetizing keys. As a consequence, equality of Value objects is order-sensitive: two objects with the same pairs in a different order are equal as JSON, but not as Hydra Values."}}}]}}}},
                  {
                    "name": "string",
                    "type": {
                      "annotated": {
                        "body": {"literal": "string"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A string value"}}}]}}}}]},
              "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A JSON value"}}}]}}},
          "constraints": []}}}]}