Skip to content

[BUG] ComposedSchema vars incorrectly includes extra properties #8813

@spacether

Description

@spacether

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

composed schemas incorrectly include extra properties when the should only include self schema properties
It looks like they include composed schema properties
Keeping these separate is necessary for correct json schema validation. One must check that:

  • types conform to any constraints at the composed schema level
  • validations conform to any constraints at the composed schema level
  • payload properties match properties defined at the composed schema level
  • additional properties match additionalProperties constraints at the composed schema level (omitted additionalProperties allows any type to be ingested)
  • defined composed schemas must validate to the payload
openapi-generator version

master 3.1.0

OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions