FAQ

  • GitHub GitHub Repo stars
  • Discord Discord Server
  • ✨ New! Try the OpenAPI Doctor ✨ The OpenAPI Doctor

    allOfConflicts


    allOfConflicts examines the walked schema graph from the DrDocument and detects repeated property names across allOf compositions whose type constraints have no common valid type.

    The function follows nested and referenced allOf branches, handles circular allOf graphs safely, and reports violations on composed schemas that cannot be satisfied by any valid instance for the conflicting property.

    It is intentionally strict: if a property conflict exists anywhere in the effective allOf composition for a schema, the schema is reported as invalid.

    Example ruleset configuration

    allof-conflicts:
      description: "allOf compositions must not define conflicting property types"
      type: "validation"
      recommended: true
      severity: "error"
      given: "$"
      resolved: false
      then:
        function: "allOfConflicts"
    

    The function is used by the allof-conflicts Rule


    View Function Source