最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

.net - Creating a schema for outgoing payloads in dotnet 8 - Stack Overflow

programmeradmin2浏览0评论

I am working on some software in dotnet 8 that's responsible for broadcasting payloads to config defined webhook URLs. I would like to be able to provide a YAML schema file to describe the payloads so that the developers of the recipient systems can generate models their side. I would like to include the XML comments and relevant attributes defined in the model.

Is there a "proper" way of doing this?

If I were doing this for an API it's relatively simple, I would just include swagger as that does the heavy lifting. However as an "outgoing" project, there obviously isn't an API so I don't quite know how to hook in to things to generate what I'm after.

Any ideas?

发布评论

评论列表(0)

  1. 暂无评论