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

fix: OpenAPI name, version and x-methods #301

Merged
merged 1 commit into from
Dec 15, 2020
Merged

Conversation

simonas-notcat
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Dec 15, 2020

Codecov Report

Merging #301 (e50bf41) into beta (04446d4) will decrease coverage by 0.16%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##             beta     #301      +/-   ##
==========================================
- Coverage   65.53%   65.36%   -0.17%     
==========================================
  Files          64       64              
  Lines        1555     1559       +4     
  Branches      242      245       +3     
==========================================
  Hits         1019     1019              
- Misses        441      445       +4     
  Partials       95       95              

Copy link
Member

@mirceanis mirceanis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

I also posted a question out of curiosity :)

@@ -25,7 +25,7 @@ export class AgentRestClient implements IAgentPlugin {
}

// @public (undocumented)
export const getOpenApiSchema: (agent: IAgent, basePath: string, exposedMethods: Array<string>) => OpenAPIV3.Document;
export const getOpenApiSchema: (agent: IAgent, basePath: string, exposedMethods: Array<string>, name?: string | undefined, version?: string | undefined) => OpenAPIV3.Document;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious here, do you need to explicitly define the params as string | undefined if they already have a question mark?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This generated by api-exctractor

@simonas-notcat simonas-notcat merged commit cbad7c0 into beta Dec 15, 2020
@simonas-notcat simonas-notcat deleted the fix/open-api-schema branch December 15, 2020 09:28
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