Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP]Testing http-Specs with oas3 emitter.Do Not Review #5635

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

skywing918
Copy link
Member

1 . Verify that all http-specs cases can be converted to the OpenAPI 3 without any errors/warnings

describe("http-specs convert", () => {
  defineSpecTests(config);
});

image

  1. Check information for a http-specs case.
it("authentication/api-key", async () => {
      const curr = {
        name: "authentication/api-key",
        fullPath: resolvePath(specsRoot, "authentication/api-key"),
      };
      const results = await openApiForFile(curr);
      const res = Object.values(results)[0] as any;
      const getThing = res.paths["/authentication/api-key/invalid"].get;
      strictEqual(getThing.operationId, "invalid");
    });
  1. support 3.1.0

@skywing918
Copy link
Member Author

@lirenhe pls review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants