Skip to content

Commit

Permalink
Add documentation for forbidden chars in env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
ekouts committed Oct 21, 2024
1 parent fc42ecc commit 25e1c2b
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 4 deletions.
22 changes: 20 additions & 2 deletions doc/openapi/firecrest-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,16 @@ paths:
description: Name of the account associated to the user in the scheduler. If not set, the one incuded in the script is taken.
env:
type: string
description: serialized JSON dictionary (varName, value) to be loaded as environment variables for the job
description: >-
serialized JSON dictionary (varName, value) to be loaded as environment variables for the job.
If you need to include forbidden characters (e.g., <, |, etc.) in an environment variable, you can
use the following workaround:
1) encode the variable's value to Base64 before submitting the job
and
2) decode the variable's value within the job script by using a command like:
`export MY_VARIABLE=$(echo MY_VARIABLE | base64 --decode)`.
required:
- file
responses:
Expand Down Expand Up @@ -1600,7 +1609,16 @@ paths:
description: Name of the account associated to the user in the scheduler. If not set, the one incuded in the script is taken.
env:
type: string
description: serialized JSON dictionary (varName, value) to be loaded as environment variables for the job
description: >-
serialized JSON dictionary (varName, value) to be loaded as environment variables for the job.
If you need to include forbidden characters (e.g., <, |, etc.) in an environment variable, you can
use the following workaround:
1) encode the variable's value to Base64 before submitting the job
and
2) decode the variable's value within the job script by using a command like:
`export MY_VARIABLE=$(echo MY_VARIABLE | base64 --decode)`.
required:
- targetPath
responses:
Expand Down
22 changes: 20 additions & 2 deletions doc/openapi/firecrest-developers-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,16 @@ paths:
description: Name of the account associated to the user in the scheduler. If not set, the one incuded in the script is taken.
env:
type: string
description: serialized JSON dictionary (varName, value) to be loaded as environment variables for the job
description: >-
serialized JSON dictionary (varName, value) to be loaded as environment variables for the job.
If you need to include forbidden characters (e.g., <, |, etc.) in an environment variable, you can
use the following workaround:
1) encode the variable's value to Base64 before submitting the job
and
2) decode the variable's value within the job script by using a command like:
`export MY_VARIABLE=$(echo MY_VARIABLE | base64 --decode)`.
required:
- file
responses:
Expand Down Expand Up @@ -1588,7 +1597,16 @@ paths:
description: Name of the account associated to the user in the scheduler. If not set, the one incuded in the script is taken.
env:
type: string
description: serialized JSON dictionary (varName, value) to be loaded as environment variables for the job
description: >-
serialized JSON dictionary (varName, value) to be loaded as environment variables for the job.
If you need to include forbidden characters (e.g., <, |, etc.) in an environment variable, you can
use the following workaround:
1) encode the variable's value to Base64 before submitting the job
and
2) decode the variable's value within the job script by using a command like:
`export MY_VARIABLE=$(echo MY_VARIABLE | base64 --decode)`.
required:
- targetPath
responses:
Expand Down

0 comments on commit 25e1c2b

Please sign in to comment.