Skip to content

Commit

Permalink
Allow and deny list (#66)
Browse files Browse the repository at this point in the history
* add allowlist and denylist to schema generation

* new schemas with allow and deny list

* change example

* reset version

* update description

* reset version

* change examples
  • Loading branch information
uhbrar authored Mar 10, 2022
1 parent 7639123 commit e7fdb1c
Show file tree
Hide file tree
Showing 3 changed files with 1,105 additions and 20 deletions.
35 changes: 35 additions & 0 deletions schema/build/generate_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,41 @@ def generate_component(op: str):
},
"unique": (True if data.get("unique") else False),
"parameters": data["parameters"],
"runner_parameters": {
"type": "object",
"oneOf": [
{
"properties": {
"allowlist": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of operation providers (by title listed on SmartAPI registry) that may be used to complete operation. No others can be used. A full list of operation providers with titles is available through the '/services' endpoint of the workflow runner.",
"example": [
"ARAX Translator Reasoner"
],
"minLength": 1
},
}
},
{
"properties": {
"denylist": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of operation providers (by title listed on SmartAPI registry) that may not be used to complete operation. All others can be used. A full list of operation providers with titles is available through the '/services' endpoint of the worflow runner.",
"example": [
"ARAGORN"
],
"minLength": 1
},
}
},
]
}
},
"required": [
"id",
Expand Down
Loading

0 comments on commit e7fdb1c

Please sign in to comment.