swagger-api / swagger-api/swagger-codegen
[SWIFT5] Meaning of "Property type is not primitive" in io.swagger.codegen.v3.generators.DefaultCodegenConfig?
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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