Skip to content

Instantly share code, notes, and snippets.

@freshteapot
Created August 15, 2024 19:20
Show Gist options
  • Save freshteapot/2c80a7f36cd539809c76df75741f2961 to your computer and use it in GitHub Desktop.
Save freshteapot/2c80a7f36cd539809c76df75741f2961 to your computer and use it in GitHub Desktop.
        - $ref: '#/components/schemas/ResponseBase'
        - type: object
          properties:
            data:
              type: array
              items:
                $ref: '#/components/schemas/EmbeddingResponseData'

The $ref, under items had a - before

Building

  • Using "--skip-validate-spec" it generated code, without it, didn't work
docker run --rm \
-v "${PWD}:/local" \
openapitools/openapi-generator-cli generate \
-i /local/a.yaml \
-g dart \
--skip-validate-spec -o /local/a/dart --additional-properties=pubName=openapi
cd ./a/dart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment