Open-EO / openeo-api

The openEO API specification
http://api.openeo.org
Apache License 2.0
93 stars 12 forks source link

No schema for process graphs? #452

Closed LukeWeidenwalker closed 2 years ago

LukeWeidenwalker commented 2 years ago

While working on process graph parsing recently I realized that the process-graph as an object doesn't actually have a complete schema in the API spec. Now I have a couple of questions!

Thanks a lot for any clarifications!

m-mohr commented 2 years ago

There's a complete OpenAPI schema in the API spec and additionally, there's the conversion to JSON Schema for only the process graph. What are you missing exactly?

The OpenAPI one is the source of truth and complete. With (good) OpenAPI validators you should be able to check process graphs. If you have better access to JSON schema validators, you can at least validate the graph portion using that. What you use depends on the use case, I can't decide that without additional context.

I'm not 100% sure how to help here?

LukeWeidenwalker commented 2 years ago

Sorry, I will try to clarify what I'm after:

LukeWeidenwalker commented 2 years ago

Sorry, I just realized that this whole question was based on a misunderstanding on my part and doesn't really make sense - will close!