Jsona Schema

A jsonaschmea is mainly used for:

  • verify jsona document
  • code completions

Developing Schemas

Schemastore is a universal JSON schema store where schemas for popular JSONA schema documents can be found.

See schemastore for more details.

Using schema

JSONA schemas can be assigned to JSONA documents according to the following in priority order starting with the highest priority:

  • set manually in the environment, e.g. as a CLI flag or an IDE setting
  • as an URL under the @jsonaschema in the root of the document
  • configuration file rules
  • contributed by an vscode settings (Visual Studio Code only)
  • an association based on a schemastore

Visual Studio Code Settings

{
  "jsona.schema.associations": {
    "openapi": [
      "api*.jsona",
    ],
  }
}