Skip to content

Generate swagger files on sync and manually #18724

Closed
apache/pulsar-site
#325

Description

@tisonkun
No description provided.

Activity

  1. self-assigned this
    on Dec 3, 2022
  2. added
    doc-required
    on Dec 3, 2022
  3. tisonkun commented on Dec 3, 2022

    @tisonkun
    MemberAuthor

    @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.json to resolve real versions so if we want to change the strategy, it can take extra effort.)

  4. tisonkun commented on Dec 6, 2022

    @tisonkun
    MemberAuthor

    I'm going to add a pytool to generate swagger files and move the sources to the site repo.

  5. michaeljmarshall commented on Dec 14, 2022

    @michaeljmarshall
    Member

    @tisonkun - sorry for the delay. I support moving the generated files to the pulsar-site repo.

    how do we currently use swagger files?

    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.

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

Metadata

Metadata

Assignees

Labels

doc-required

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions