Hey I am currently using the SDK to build a tap fo...
# singer-tap-development
r
Hey I am currently using the SDK to build a tap for salesmate.io and ran into an error error message: https://vim.cx/?4c2d208648546cc1#iw1v4fHeChb6girG5EVkTtLHT1mmVNSFK1qbGdhUj4K This error appeared when i tried to use
Copy code
poetry run tap-salesmate --discover
This is the member that is declared in the tap class
Copy code
config_jsonschema = th.PropertiesList(
        th.Property("lastActivityAt", th.DateTimeType, required=False),
        th.Property("instance_name", th.StringType, required=True),
        th.Property("sessionToken", th.StringType, required=True)
    ).to_dict()
When I change all those required to False, The Command works fine. Help on fixing it is highly appreciated!
t
FYI @aaronsteers
e
By default
--discover
expects config values. It makes sense for sources with "dynamic" schemas like dbs but less so for APIs with static schemas.
a
@edgar_ramirez_mondragon is correct. Happy to take an issue in the tracker or an MR. In theory, we could waive validation during discovery. @rithesh_s, is this a case where you are trying to run discovery without config, or is the config just not being picked up as expected?
r
I am trying to run discovery without a config
@aaronsteers
a
This isn't supported yet, unfortunately. Would certainly be doable as a feature in the future. Does your use case align with the --demo feature described here?: https://gitlab.com/meltano/sdk/-/issues/30 This feature also is meant to cater to sample datasets, but just more broadly to not need credentials.