averbis / averbis-python-api

Conveniently access the REST API of Averbis products using Python
Apache License 2.0
12 stars 4 forks source link

Support schemaVersion 2.0 in the pipelineConfigurationDto #19

Closed DavidHuebner closed 3 years ago

DavidHuebner commented 3 years ago

Is your feature request related to a problem? Please describe. In the new major version (ID6/HD6), a new schemaVersion 2.0 has been introduced for the pipeline configuration with some breaking changes. Old schema:

    configuration = {
        "schemaVersion": "1.3",
        "name": "discharge",
        "description": None,
        "analysisEnginePoolSize": 1,
        "casPoolSize": 2,
        # ... truncated ...
    }
    configuration = {
        "schemaVersion": "2.0",
        "pipelineName": "discharge",
        "description": None,
        "numberOfInstances": 2,
        # ... truncated ...
    }

Hence, we currently cannot create pipelines or send parallel text analysis requests with the ID6/HD6.

Describe the solution you'd like The API should support both schema versions.

Additional context I will prepare a MR.