createSpecFile
Creates a file for an OpenAPI or protobuf specification. Provide the spec ID, file path, and content to add a new file to the spec.
Instructions
Creates a file for an OpenAPI or a protobuf 2 or 3 specification.
Note:
If the file path contains a `/` (forward slash) character, then a folder is created. For example, if the path is the `components/schemas.json` value, then a `components` folder is created with the `schemas.json` file inside.
Creating a spec file assigns it the `DEFAULT` file type.
Multi-file specifications can only have one root file.
Files cannot exceed a maximum of 10 MB in size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| specId | Yes | The spec's ID. | |
| path | Yes | The file's path. Accepts JSON or YAML files. | |
| content | Yes | The file's stringified contents. |