Skip to content
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

Fix/adapter json schema validations #48

Merged
merged 5 commits into from
May 27, 2024

Conversation

johnyrahul
Copy link
Contributor

@johnyrahul johnyrahul commented May 21, 2024

What

No field level validation it wasallowing the user to key in negative/floating values,

  1. Max retries
  2. timeout
  3. Max retries

Why

Adapter improvements

How

json schema validations - https://json-schema.org/understanding-json-schema/reference/numeric

Relevant Docs

Related Issues or PRs

Dependencies Versions / Env Variables

Notes on Testing

...

Screenshots

...

Checklist

I have read and understood the Contribution Guidelines.

@CLAassistant
Copy link

CLAassistant commented May 21, 2024

CLA assistant check
All committers have signed the CLA.

@johnyrahul johnyrahul requested review from gaya3-zipstack, a team and kirtimanmishrazipstack and removed request for a team May 21, 2024 10:17
@johnyrahul johnyrahul marked this pull request as ready for review May 21, 2024 10:18
Copy link
Contributor

@chandrasekharan-zipstack chandrasekharan-zipstack left a comment

Choose a reason for hiding this comment

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

LGTM - do you think we need any migrations in case someone did key in a negative value?

Copy link
Contributor

@hari-kuriakose hari-kuriakose left a comment

Choose a reason for hiding this comment

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

@johnyrahul johnyrahul self-assigned this May 27, 2024
@vishnuszipstack vishnuszipstack merged commit 7d70dca into main May 27, 2024
@vishnuszipstack vishnuszipstack deleted the fix/adapter-json-schema-validations branch May 27, 2024 08:20
@hari-kuriakose
Copy link
Contributor

LGTM - do you think we need any migrations in case someone did key in a negative value?

@chandrasekharan-zipstack Assuming these new validations would only fire for new adapters or while editing existing adapters, a migration might not be required. Should be ok.
cc @johnyrahul

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.

None yet

5 participants