Skip to content

Commit

Permalink
Merge pull request #68 from speakeasy-api/chase/transformations-schema
Browse files Browse the repository at this point in the history
chore: add transformations to json schema
  • Loading branch information
chase-crumbaugh authored Nov 8, 2024
2 parents f2ea089 + 0b10c4c commit 2447ec2
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions schemas/workflow.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,45 @@
]
}
},
"transformations": {
"type": "array",
"description": "A list of transformations to apply to the OpenAPI document",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"removeUnused": {
"type": "boolean",
"description": "Remove unused components from the OpenAPI document"
},
"filterOperations": {
"type": "object",
"description": "Filter operations from the OpenAPI document",
"properties": {
"operations": {
"type": "string",
"description": "Comma-separated list of operations to filter"
},
"include": {
"type": "boolean",
"description": "Include the specified operations (mutually exclusive with exclude)"
},
"exclude": {
"type": "boolean",
"description": "Exclude the specified operations (mutually exclusive with include)"
}
},
"required": ["operations"]
},
"cleanup": {
"type": "boolean",
"description": "Clean up the OpenAPI document"
}
},
"minProperties": 1,
"maxProperties": 1
}
},
"output": {
"type": "string",
"description": "The output file name (optional)"
Expand Down

0 comments on commit 2447ec2

Please sign in to comment.