Skip to content

Commit

Permalink
First draft to support API version 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Feb 13, 2020
1 parent d8d6c16 commit c9421b4
Show file tree
Hide file tree
Showing 20 changed files with 5,542 additions and 4,001 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "src/assets/openeo-api"]
path = src/assets/openeo-api
url = https://github.com/Open-EO/openeo-api
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@openeo/js-processgraphs",
"version": "0.1.0",
"version": "1.0.0-beta.1",
"author": "openEO Consortium",
"contributors": [
{
"name": "Matthias Mohr"
}
],
"description": "Common JS functionalities for openEO.",
"description": "JavaScript library to parse, validate and execute openEO process graphs.",
"license": "Apache-2.0",
"homepage": "http://openeo.org",
"bugs": {
Expand All @@ -22,11 +22,13 @@
"dist/*.js",
"src/*"
],
"peerDependencies": {
"dependencies": {
"@openeo/js-commons": "^1.0.0-rc.1",
"ajv": "^6.10.0"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"epsg-index": "^1.0.0",
"jest": "^24.8.0",
"jest-html-reporter": "^2.5.0",
"jsdoc": "^3.5.5",
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions src/assets/openeo-api
Submodule openeo-api added at ba711d
13 changes: 4 additions & 9 deletions src/error.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Utils = require('./utils');
const { Utils } = require('@openeo/js-commons');

const MESSAGES = {
"MultipleResultNodes": "Multiple result nodes specified for process graph.",
Expand All @@ -11,16 +11,11 @@ const MESSAGES = {
"NodeIdInvalid": "Invalid node id specified in process graph.",
"NodeInvalid": "Process graph node '{node_id}' is not a valid object.",
"ProcessIdMissing": "Process graph node '{node_id}' doesn't contain a process id.",
"CallbackArgumentInvalid": "Invalid callback argument '{argument}' requested in the process '{process_id}' (node: '{node_id}').",
"ProcessGraphParameterMissing": "Invalid parameter '{argument}' requested in the process '{process_id}' (node: '{node_id}').",
"ProcessUnsupported": "Process '{process}' is not supported.",
"ProcessArgumentUnsupported": "Process '{process}' does not support argument '{argument}'.",
"ProcessArgumentUnsupported": "Process '{process}' does not support the following arguments: {arguments}",
"ProcessArgumentRequired": "Process '{process}' requires argument '{argument}'.",
"ProcessArgumentInvalid": "The argument '{argument}' in process '{process}' is invalid: {reason}",
"VariableValueMissing": "No value specified for process graph variable '{variable_id}'.",
"VariableDefaultValueTypeInvalid": "The default value specified for the process graph variable '{variable_id}' is not of type '{type}'.",
"VariableValueTypeInvalid": "The value specified for the process graph variable '{variable_id}' is not of type '{type}'.",
"VariableIdInvalid": "A specified variable ID is not valid.",
"VariableTypeInvalid": "The data type specified for the process graph variable '{variable_id}' is invalid. Must be one of: string, boolean, number, array or object.",
"ProcessArgumentInvalid": "The argument '{argument}' in process '{process}' is invalid: {reason}"
};

module.exports = class ProcessGraphError extends Error {
Expand Down
Loading

0 comments on commit c9421b4

Please sign in to comment.