You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generate swagger files on sync and manually #18724
I'm going to remove files under the main repo and only generate on sync or manually (on release) in the site repo.
It seems that we generate swagger files for each minor release and I wonder why. (BTW, some site logic depends on restApiVersions.json to resolve real versions so if we want to change the strategy, it can take extra effort.)
Since APIs can change slightly for each minor version, even with things like improved annotations, I personally think it makes sense to generate the swagger files for every release.
Activity
tisonkun commentedon Dec 3, 2022
@Jason918 @michaeljmarshall how do we currently use swagger files?
I'm going to remove files under the main repo and only generate on sync or manually (on release) in the site repo.
It seems that we generate swagger files for each minor release and I wonder why. (BTW, some site logic depends on
restApiVersions.jsonto resolve real versions so if we want to change the strategy, it can take extra effort.)tisonkun commentedon Dec 6, 2022
I'm going to add a pytool to generate swagger files and move the sources to the site repo.
michaeljmarshall commentedon Dec 14, 2022
@tisonkun - sorry for the delay. I support moving the generated files to the pulsar-site repo.
Some people use the swagger files to generate clients. This is something that @visortelle has worked on and has contributed fixes to our annotations to make the generated clients work better. Here is a sample third party generated client: https://github.com/tealtools/pulsar-admin-client-js.
Since APIs can change slightly for each minor version, even with things like improved annotations, I personally think it makes sense to generate the swagger files for every release.