-
Notifications
You must be signed in to change notification settings - Fork 0
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
Epic - FBI-287 - Request example generation for Curl and Python #4
base: main
Are you sure you want to change the base?
Epic - FBI-287 - Request example generation for Curl and Python #4
Conversation
…example-generation-in-curl-for-redoc FBI-453: Implement request example generation in curl for redoc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, see my suggestions.
src/services/models/CurlRequest.ts
Outdated
|
||
// Add Authentication Header if provided | ||
this.apiKeys | ||
.filter(scheme => scheme.in === 'header') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be a constant
src/services/models/CurlRequest.ts
Outdated
} | ||
} | ||
|
||
if (!reqHeaders.get('Accept')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be a constant
src/services/models/CurlRequest.ts
Outdated
|
||
if (this.requestBody?.mediaTypes.length) { | ||
const [mediaType] = this.requestBody.mediaTypes; | ||
if (!mediaType.name.includes('form-data')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be a constant
…example-generation-in-python-for-redoc FBI-457: Implement request example generation in Python for Redoc
What/Why/How?
Reference
Testing
Screenshots (optional)
Check yourself