Skip to content

Commit

Permalink
Add Authorization header to OpenAPI docs
Browse files Browse the repository at this point in the history
Closes #43

Signed-off-by: flakey5 <[email protected]>
  • Loading branch information
flakey5 committed May 14, 2024
1 parent acf323c commit f5f0265
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,19 @@ class AiWarpGenerator extends ServiceGenerator {
const packageJson = await this.getStackablePackageJson()
const config = {
$schema: this.config.localSchema as boolean ? './stackable.schema.json' : `https://schemas.platformatic.dev/@platformatic/ai-warp/${packageJson.version}.json`,
service: {
openapi: {
components: {
securitySchemes: {
apiKey: {
type: 'apiKey',
in: 'header',
name: 'Authorization'
}
}
}
}
},
module: packageJson.name,
aiProvider: {},
promptDecorators: {
Expand Down

0 comments on commit f5f0265

Please sign in to comment.