shelf
shelf copied to clipboard
Support for OpenAPI?
Is there any support for OpenAPI (preferably v3) or any known extensions / middleware for it? I know Conduit has it, but I do like that this package is supported by the Dart team. Any suggestions welcome, thanks!
Oh actually it turns out that Conduit only supports generation of OpenAPI documents from code not the other way around ...
OpenApi support is too broad, do you mean generate shelf server code based on an OpenApi definition? If yes the right repo would be https://github.com/OpenAPITools/openapi-generator but for now such a generator doesn't exist. I guess it shouldn't be too hard as we can use shelf annotation and let build_runner do the heavy work for us. And for the models there is already some dart generator available so we can reuse what they've done.
Yes, that's what I meant! It would be a great addition I think.
Love the idea in general, but it's a bit to broad (and complex) for this repo! Excited to see what the community does here!