Open-EO / openeo-backend-validator

Service to validate back-end compliance with the API specification.
Apache License 2.0
1 stars 3 forks source link

Go: Enable usage of unmodified openEO specification #7

Closed bgoesswe closed 5 years ago

bgoesswe commented 5 years ago

Add the possibility to use the unmodified OpenAPI specification of openEO These things have to be figured out to make it possible:

m-mohr commented 5 years ago

Let me know if there's anything I can help with.

m-mohr commented 5 years ago

Regarding custom types: Have you seen https://godoc.org/github.com/getkin/kin-openapi/openapi3#DefineStringFormat ?

bgoesswe commented 5 years ago

Yes, but couldn't make it work by now, but I am still on it

m-mohr commented 5 years ago

There was also a problem with nullable, which is due to the OpenAPI spec being not very clear about its behavior. I fixed this in the openEO API spec itself, see commit https://github.com/Open-EO/openeo-api/commit/64bfc62bdb0cf94a5fa1f63756ab50e242f5d136#diff-81a4213b3282d6ebe982e56a204421ca

bgoesswe commented 5 years ago

With this commit I ruled out these validation steps of the openAPI file validation:

  1. disable the use of the server defined in the openAPI spec
  2. Ignoring unknown formats

After that I was able to use the unchanged coreAPI JSON and also use the openapi.json directly from github.