Skip to content

Schema Primitive types use AnyOf (not supported in OpenApiSpec V2) #1004

Closed

Description

@mispeer

Short summary (3-5 sentences) describing the issue.
AnyOf is used in the schema for primitive types, regardless of OpenApiSpec version. In spec version 2, AnyOf is not supported

Assemblies affected

Reader
Which assemblies and versions are known to be affected?

Steps to reproduce

Unknown currently, though likely diffing any model with the impacted types (Double, etc.) would should an incorrect serialization on v2.
The simplest set of steps to reproduce the issue. If possible, reference a commit that demonstrates the issue.

Expected result

Correct generation for v2 spec.
What would happen if there wasn't a bug.

Actual result

Unknown
What is actually happening.

Additional detail

*Optional, details of the root cause if known.

Activity

  1. darrelmiller commented on Feb 16, 2022

    @darrelmiller
    Member

    Can you provide an example CSDL that causes the problem you are describing?

  2. microsoft-github-policy-service commented on Mar 3, 2025

    @microsoft-github-policy-service
    Contributor

    This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

priority:p3Nice to have. Customer impact is very minimalstatus:no-recent-activityNo recent activity on this thread, about to be closedstatus:waiting-for-author-feedbackIssue that we've responded but needs author feedback to closetype:bugA broken experience

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions