-
Notifications
You must be signed in to change notification settings - Fork 1
Generate unstable SDK alongside v2.11 #265
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
Open
fern-support
wants to merge
3
commits into
main
Choose a base branch
from
unstable-sdk
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
paths: | ||
'/articles': | ||
post: | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/CreateArticleRequestBody' | ||
'/companies': | ||
post: | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/CreateOrUpdateCompanyRequestBody' | ||
'/phone_call_redirects': | ||
post: | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/CreatePhoneSwitchRequestBody' | ||
'/ticket_types': | ||
post: | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/CreateTicketTypeRequestBody' | ||
'/contacts/{id}/companies': | ||
post: | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
required: | ||
- company_id | ||
properties: | ||
company_id: | ||
type: string | ||
description: The unique identifier for the company which is given | ||
by Intercom | ||
example: 58a430d35458202d41b1e65b | ||
id: null | ||
examples: | ||
successful: | ||
summary: Successful | ||
value: | ||
company_id: 6762f09a1bb69f9f2193bb34 | ||
bad_request: | ||
summary: Bad Request | ||
value: | ||
company_not_found: | ||
summary: Company Not Found | ||
value: | ||
company_id: '123' | ||
'/messages/status': | ||
get: | ||
responses: | ||
'500': | ||
content: | ||
application/json: | ||
examples: null | ||
|
||
components: | ||
schemas: | ||
custom_attributes: | ||
example: | ||
monthly_spend: '155.5' | ||
create_ticket_request: | ||
x-fern-type-name: CreateTicketRequestBody | ||
reply_conversation_request: | ||
x-fern-type-name: ReplyConversationRequestBody | ||
update_article_request: | ||
x-fern-type-name: UpdateArticleRequestBody | ||
update_ticket_type_request: | ||
x-fern-type-name: UpdateTicketTypeRequestBody | ||
single_filter_search_request: | ||
properties: | ||
operator: | ||
enum: | ||
- '=' | ||
- '!=' | ||
- IN | ||
- NIN | ||
- '<' | ||
- '>' |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@mattblank11 none of the Custom Channel references need to go in here?
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.
@Eclairemoy You shouldn't need to add anything else here - this file just overwrites certain parts of the unstable spec so that our generator can parse it properly. Anything added to this file was basically generating an error when we tried to generate your SDK without this file
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.
Would it may happening because we added them in
openapi-overrides.yml
? If yes, should we remove/move them from there?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.
@auroralimin can you clarify the question?
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.
I was asked to add Custom Channel references in openapi-overrides: https://github.com/intercom/Intercom-OpenAPI/blob/main/fern/openapi-overrides.yml#L445
So I'm wondering if we don't need to add here because it is already added there. And/or if we should move the reference from there (either because is not necessary or because we could prioritise adding here only and not there, given that we do not want the SDK to implement these in the version 2.11).
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.
Oh I see, thanks for clarifying! You should be safe to remove from
openapi-overrides
since we're not actually implementing the methods there. Let's move tounstable-api-overrides
!