| 1 |
$schema: "https://json-schema.org/draft/2020-12/schema" |
| 2 |
$$inherit: "jsonapi.json" |
| 3 |
title: "OPTIMADE schema" |
| 4 |
description: "This is a schema for responses in the JSON output format from the OPTIMADE API. It is directly based on the schema for JSON:API." |
| 5 |
definitions: |
| 6 |
resource: |
| 7 |
oneOf: |
| 8 |
- type: "object" |
| 9 |
properties: |
| 10 |
type: |
| 11 |
const: "structures" |
| 12 |
attributes: |
| 13 |
$ref: "#endpoints/entrytypes/structures" |
| 14 |
- type: "object" |
| 15 |
properties: |
| 16 |
type: |
| 17 |
const: "files" |
| 18 |
attributes: |
| 19 |
$ref: "#endpoints/entrytypes/files" |
| 20 |
- type: "object" |
| 21 |
properties: |
| 22 |
type: |
| 23 |
const: "references" |
| 24 |
attributes: |
| 25 |
$ref: "#endpoints/entrytypes/references" |
| 26 |
endpoints: |
| 27 |
$$inherit: "/v1.2/standards/optimade" |