openapi-delphi-generator icon indicating copy to clipboard operation
openapi-delphi-generator copied to clipboard

Missing JSON schema type 2

Open zeduardo2000 opened this issue 1 year ago • 2 comments

Hello,

I tried to import the OpenApi schema from qdrant, a vector database to be used on OpenAI embeddings. I got an error message running the importer:

EJSchemaReaderException: Missing JSON schema type at $.components.schemas.CollectionConfig.properties.quantization_config

OpenAPI Download

Thanks for any help.

zeduardo2000 avatar Mar 18 '24 22:03 zeduardo2000

That's because such property $.components.schemas.CollectionConfig.properties.quantization_config contains this specification:

          "quantization_config": {
            "default": null,
            "anyOf": [
              {
                "$ref": "#/components/schemas/QuantizationConfig"
              },
              {
                "nullable": true
              }
            ]
          }

anyOf is not currently supported by OpenAPI Delphi Generator.

wlandgraf avatar Mar 19 '24 00:03 wlandgraf

Thanks for the quick response. I will study the source to check if i can contribute somehow. I´will let you know...

zeduardo2000 avatar Mar 19 '24 11:03 zeduardo2000