Skip to content

Allow $refs for vendor extensions #255

Description

@jordanebelanger

Hi,

I could be wrong, but it looks like vendor extensions can only be resolved as AnyCodable dictionaries of [String: Any]. It would be great if we could use $refs in vendor extensions, i.e be able to do something like this:

openapi: 3.1.0
...
x-vendor-extension-cors: "#/components/schemas/cors"
...
components:
  schemas:
    cors:
      allowedOrigins: 
        - "*"
      allowedMethods:
        - GET
        - POST
        - PUT
        - OPTIONS
        - PATCH
        - DELETE
      allowedHeaders:
        - Accept 
        - Authorization 
        - Content-Type 
        - Origin 
        - X-Requested-With,
        - Application-ID
    

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions