Skip to content

Schema errors when running codegen on spec #14

Description

@snake-and-bake

When running openapi-python-client generate with both the standard and dereferenced openapi.yaml files, multiple errors are raised that prevent a full client spec. Removing reference errors drops the count from 37 to 6 (half of which only affect the staff/ endpoint), which is manageable and I can address it downstream, but I wanted to make sure I'm not missing something.

The 6 errors in the deref are bucketed into 4 categories:

  • Unsupported content type on /users/custom_style.css (looks like the CSS file got added by mistake?)
  • Unsupported content type multipart/x-www-form-urlencoded (which appears to be a portmanteau of application/x-www-form-urlencoded and multipart/form-data as per MDN)
  • Conflicting enums for CommentVote
  • Duplicate models VoteTrendType2Uploader

The rest of the errors from the referenced version are Could not find reference in parsed models or enums or some variation on Invalid property in union response_200. I've attached the error logs as reference.

errs.log
deref.errs.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions