We have OpenAPI Spec OAS 3.0.0 contains complexities like AllOf, AnyOff, #ref OneOf and want to valicate-contnent for request and response Its not working

Kambar, Praveen kumar N 0 Reputation points
2026-07-01T08:33:44.6233333+00:00

We have OpenAPI Spec OAS 3.0.0 contains complexities like AllOf, AnyOff, #ref OneOf and want to valicate-contnent for request and response Its not working. and says complex things like AllOf, AnyOff, #ref OneOf doesn't work in validate-content APIM policy. we need to use simplified flattened API spec doc

Azure Policy
Azure Policy

An Azure service that is used to implement corporate governance and standards at scale for Azure resources.


1 answer

Sort by: Most helpful
  1. Anshika Varshney 15,455 Reputation points Microsoft External Staff Moderator
    2026-07-04T10:52:54.16+00:00

    Thank you for reaching out.

    To better understand the issue, could you please share:

    • The service/product where you are using the OpenAPI 3.0 specification.
    • The exact error message or behavior you are seeing.
    • Whether the issue occurs during OpenAPI import, schema validation, or runtime request/response validation.
    • A minimal sample of the OpenAPI definition containing the allOf, anyOf, oneOf, or $ref constructs causing the problem.

    OpenAPI composition features such as allOf, anyOf, oneOf, and nested $ref references are not handled consistently across all Microsoft services and tools. Understanding the specific service and error details will help determine whether this is a supported scenario, a known limitation, or a product issue.

    We look forward to your response.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.