-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Jira structure: back to swagger schemas, but fix incorrect #5523
Conversation
/test connector=connectors/source-jira
|
} | ||
"additionalProperties": false, | ||
"description": "List of system avatars." | ||
} |
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.
todo add newline
/test connector=connectors/source-jira
|
@@ -1,33 +1,24 @@ | |||
{ | |||
"$schema": "http://json-schema.org/schema#", | |||
"type": ["object", "null"], |
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.
Should there be a
"$schema": "http://json-schema.org/draft-07/schema#",
too?
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.
autogenerated schema always have this entry $schema
. The swagger big hairy json is https://developer.atlassian.com/cloud/jira/platform/swagger.v3.json . Accordingly to it, the labels are https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-labels/#api-group-labels PageBeanString. In this json document it is described here root['components']['schemas']['PageBeanString']
and it just does not contain $schema entry. Schemas were restored to the state before #4947 and it seems that schemas, as well swagger one's just does not contain this entry. We can modify existing jsons and set it, BUT the previous version and swagger do not have it, and we use swagger.
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 you provide some details about changes?
upgraded description |
/test connector=connectors/source-jira
|
/publish connector=connectors/source-jira
|
What
Closes #5256
How
It's schema, had both system and custom roots, when in the code we expand and get inner value. Now schema suits to output
class IssueVotes
. Using this parse_response_root returns only the voters (users), but we need also the information about the votes https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-votes/#api-rest-api-3-issue-issueidorkey-votes-get . We skipped info hasVoted, votes amount, self. Those schemas and roots were repaired to return full information, not only voters. Several changes in streams have the same reason.Recommended reading order
x.java
y.python
Pre-merge Checklist
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
docs/SUMMARY.md
docs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampledocs/integrations/README.md
airbyte-integrations/builds.md
Airbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described hereUpdating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
docs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described hereConnector Generator
-scaffold
in their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates
then checking in your changes