| { | |
| "$schema": "https://json-schema.org/draft-07/schema#", | |
| "title": "package:data_assets party:shared shared definitions", | |
| "definitions": { | |
| "Asset": { | |
| "type": "object", | |
| "properties": { | |
| "type": { | |
| "type": "string", | |
| "anyOf": [ | |
| { | |
| "const": "data_assets/data" | |
| }, | |
| { | |
| "type": "string" | |
| } | |
| ] | |
| } | |
| }, | |
| "allOf": [ | |
| { | |
| "if": { | |
| "properties": { | |
| "type": { | |
| "const": "data_assets/data" | |
| } | |
| } | |
| }, | |
| "then": { | |
| "properties": { | |
| "encoding": { | |
| "$ref": "#/definitions/DataAssetEncoding" | |
| } | |
| } | |
| } | |
| } | |
| ] | |
| }, | |
| "DataAssetEncoding": { | |
| "type": "object", | |
| "properties": { | |
| "file": { | |
| "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath" | |
| }, | |
| "name": { | |
| "type": "string" | |
| }, | |
| "package": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "file", | |
| "name", | |
| "package" | |
| ] | |
| } | |
| } | |
| } |