Skip to content

Commit

Permalink
feat: expose endpointParameters to pre/post-processing (#567)
Browse files Browse the repository at this point in the history
Note reserved parameters are inaccessible
  • Loading branch information
dcroote authored Jul 22, 2023
1 parent f7e9d71 commit 636432e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/reference/ois/next/processing.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,22 @@ source code of Airnode to understand how processing works and what modules are
made available to the snippet code. Modules cannot be imported directly in cloud
environments.

## Accessing endpoint parameters

Endpoint parameters, with the exception of reserved parameters, are accessible
within pre-processing and post-processing via the immutable `endpointParameters`
object. For example, if there was a parameter named `myParameter` defined in the
`endpoints[n].parameters` array, its value could be accessed using
`endpointParameters.myParameter` within pre-processing and post-processing code
snippets.

::: info Accessing reserved parameters

Note that reserved parameters are inaccessible in both pre-processing and
post-processing.

:::

## Interpolation

Note, that config.json supports interpolation of secrets via the JavaScript
Expand Down

0 comments on commit 636432e

Please sign in to comment.