swagger-api / swagger-api/swagger-codegen

[SWIFT5] Meaning of "Property type is not primitive" in io.swagger.codegen.v3.generators.DefaultCodegenConfig?

Open
#10,128 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Hi folks, when running the code generator I get the following DEBUG message. Is this something to worry about? Is the yaml-file wrong?

DEBUG io.swagger.codegen.v3.generators.DefaultCodegenConfig - Property type is not primitive: Thingies

macOS, homebrew, swagger-codegen version 3.0.18

openapi: 3.0.0
info:
  title: Thingies App
  version: "1"
  description: |+
    ...

paths:
  /thingies/load_all:
    post:
      responses:
        200:
          description: Load all thingies
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Thingies"
servers:
  - url: https://thingies.test/api
components:
  schemas:
    Thingies:
      type: object
      properties:
        property_one:
          type: string

swagger-codegen generate -l swift5 -i "${YAML_FILE}" -o "${SWIFT_PATH}"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the DefaultCodegenConfig entry point and the provided OpenAPI schema, then reproduce the DEBUG message with the stated swagger-codegen 3.0.18 Swift 5 command. Review whether the schema is valid and document what the message means and whether action is required.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, swift
Domain
api, tooling
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.