Project

General

Profile

« Previous | Next » 

Revision a066af01

Added by koszko over 1 year ago

include $schema property in internally-generated resources/mappings

View differences:

html/payload_create.js
97 97
    const sha256 = compute_sha256(script);
98 98

  
99 99
    const resource = {
100
	$schema: "https://hydrilla.koszko.org/schemas/api_resource_description-1.0.1.schema.json",
100 101
	source_name: identifier,
101 102
	source_copyright: [],
102 103
	type: "resource",
......
104 105
	long_name,
105 106
	uuid: uuidv4(),
106 107
	version: [1],
108
	revision: 1,
107 109
	description,
108 110
	dependencies: [],
109 111
	scripts: [{file: "payload.js", sha256}]
110 112
    };
111 113

  
112 114
    const mapping = {
115
	$schema: "https://hydrilla.koszko.org/schemas/api_mapping_description-1.0.1.schema.json",
113 116
	source_name: identifier,
114 117
	source_copyright: [],
115 118
	type: "mapping",

Also available in: Unified diff