zircote / swagger-php

A php swagger annotation and parsing library
http://zircote.github.io/swagger-php/
Apache License 2.0
5.1k stars 933 forks source link

Support dynamicRef/Anchor #1572

Open Aweptimum opened 7 months ago

Aweptimum commented 7 months ago

I was looking into whether the spec supported generics, and I found this nifty article recently shared by henry andrews here

This has technically been a part of the spec for a while, but it's not documented. There is currently an open issue authored 2 months ago to document it https://github.com/OAI/OpenAPI-Specification/issues/3601

I was wondering if swagger-php might be able to add support for it. Although I don't think swagger-codegen parses it, so this would just be a nice-to-have for if/when they do

DerManoMann commented 7 months ago

I always struggle with the specs - never quite sure if something is an OpenAPI thing or a JSON schema thing. If it comes to it there is certainly scope for adding it. It might mean finally switching to a proper PHP parser and/or probably also a library to parse types.