Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid JSON on JSON Schema docs page #276

Open
samtun opened this issue Nov 5, 2024 · 0 comments
Open

Invalid JSON on JSON Schema docs page #276

samtun opened this issue Nov 5, 2024 · 0 comments

Comments

@samtun
Copy link

samtun commented Nov 5, 2024

On the JSON Schema page the more complex example shows invalid JSON.

{
  "typography": {
    "h1": {
      "Bold": {
        "value": {
          "fontFamily": "Helvetica",
          "fontSize": 24,
          "fontWeight": "bold",
          "textDecoration": "none",
          "textCase": "none"
        },
        "type": "typography"
      },
      }
    }
  },
  "shadows": {
    "default": {
      "value": {
        "x": 4,
        "y": 4,
        "blur": 4,
        "spread": 0,
        "color": "rgba(0, 0, 0, 0.5)"
        "type": "dropShadow" | "innerShadow"
      },
      "type": "boxShadow"
    }
  },
  }
}

  • "color": "rgba(0, 0, 0, 0.5)" is missing a ,
  • There is an extra } in the_ "typography" and "shadows" block
  • "type": "dropShadow" | "innerShadow" is no valid JSON
    • Never saw this anywhere else. Might something like "type": "dropShadow | innerShadow" be the correct way of defining this?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant