Skip to content

Commit

Permalink
Merge branch 'RESTAPI-1205-env-export-docs' into 'master'
Browse files Browse the repository at this point in the history
Add documentation for forbidden chars in env vars

See merge request firecrest/firecrest!325
  • Loading branch information
ekouts committed Oct 21, 2024
2 parents fc42ecc + 25e1c2b commit 6537378
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 6537378

Please sign in to comment.