Hi! Im developing a custom connector for an API an...
# contributing-to-airbyte
m
Hi! Im developing a custom connector for an API and I just added a second stream but I am unable to make the new stream appear when selecting streams to sync in the UI. I think I need som help here.
u
I have added the new stream in source.py
Copy code
class Patient(ProvetStream):
    primary_key = "url"

    def path(
        self, stream_state: Mapping[str, Any] = None, stream_slice: Mapping[str, Any] = None, next_page_token: Mapping[str, Any] = None
    ) -> str:
    
        return "patient"
u
I have also added a patient.json in the source_provet folder
Copy code
{
    "$schema": "<http://json-schema.org/draft-07/schema#>",
    "type": "object",
    "properties": {
        "id": {
          "type": "integer"
        },
        "url": {
            "type": "string"
        },
        "client": {
            "type": "string"
        },
        "name": {
            "type": "string"
        },
u
Then I rebuilt the connector with a new tag
docker build . -t airbyte/source-provet:dev-6
u
Then I changed the version to dev-6 under settings->sources
m
Then I tried to update (refresh schema) the schema in the connection settings. But I see only changes I made to the already existing stream but the new stream does not show up. Also tried removing the connection and the source and added it agin but no luck.
u
Can you check if you have added your stream in source.py
u
I have no such file in VS code. Where should it reside?
u
Sorry my bad it’s source.py
j
Dang! I missed adding it in the returned array in the
def streams
function! Trying it now.
u
Did it work @Martin Larsson?