Forum Discussion

MOverholt-AFI's avatar
4 years ago
Solved

Can securitySchemes be defined in a domain?

I'm trying to use domain specs (OAS3) to define standard, reusable components that can be used in multiple APIs. I'm getting errors when I try to use a $ref: to add a securityScheme that was defined ...
  • HKosova's avatar
    4 years ago

    Hi MOverholt-AFI,

     

    Currently, domains cannot contain security schemes:

    Note: The OpenAPI 3.0 components section can contain securitySchemes, however, domains cannot contain them.

    There's a feature request in our internal tracker to support this in the future, and I've added your vote to it.