Skip to content

Disable Schema Validation#70

Merged
zemberdotnet merged 1 commit intomainfrom
disable-schema-validation
Jun 7, 2022
Merged

Disable Schema Validation#70
zemberdotnet merged 1 commit intomainfrom
disable-schema-validation

Conversation

@zemberdotnet
Copy link
Member

@zemberdotnet zemberdotnet commented Jun 7, 2022

Integrations may fail due to the data-model validation, but I think that shouldn't happen in a managed context like starbase.

@zemberdotnet zemberdotnet requested a review from a team as a code owner June 7, 2022 21:48
@zemberdotnet zemberdotnet requested a review from a team June 7, 2022 21:48
async function collectIntegrationData(integrationDirectory: string) {
await executeWithLogging(`yarn --cwd ${integrationDirectory} start;`);
await executeWithLogging(
`yarn --cwd ${integrationDirectory} start --disable-schema-validation;`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should allow arbitrary args to be passed down to this command.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should allow that. I think, but am not completely sure, that invalid flags are ignored by the SDK.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the SDK will complain about an invalid option if you provide a flag it's not expecting. I think either option is great and really appreciate the addition!

An argument in favor of allowing arbitrary args is it would also allow Starbase users to specify only a subset of steps to execute with the --step option. And certainly other benefits as well, but that's the one that immediately comes to mind as potentially useful.

Copy link
Contributor

@austinkelleher austinkelleher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvement!

@zemberdotnet zemberdotnet merged commit 15d9f8c into main Jun 7, 2022
@zemberdotnet zemberdotnet deleted the disable-schema-validation branch June 7, 2022 23:12
@austinkelleher austinkelleher mentioned this pull request Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants