-
Notifications
You must be signed in to change notification settings - Fork 72
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
Validate reserved parameters #1574
Comments
Comments: Emanuel Tesař Emanuel Tesař I’d argue that it might be easier/maintainable to implement some checks directly in TypeScript as part of validator logic. I could also imagine validator being completely rewritten to TS. Burak Benligiray Emanuel Tesař I did some research and GitHub - colinhacks/zod: TypeScript-first schema validation with static type inference is exactly what we want - it allows us to easily build composable validations which in turn parse the unknown input (user defined config.json) and returns TypeSafe parse result. The most useful thing (and the purpose of this ticket) is refine function GitHub - colinhacks/zod: TypeScript-first schema validation with static type inference function in which we can implement arbitrary business logic validation. |
Partially overlaps with: api3dao/ois#15 |
Currently some checking happens in airnode/packages/airnode-adapter/src/response-processing/extraction.ts Lines 68 to 129 in 3fcbc37
|
Context: #620 (comment) and see the discussion below the ticket (some comments are outdated though). See the documentation for reserved parameters: https://docs.api3.org/ois/v1.0.0/reserved-parameters.html#type
We should verify that the reserved parameters configuration is valid. This means:
The text was updated successfully, but these errors were encountered: