-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ts): Fixed API schema to pass TyepScript SDK generation
- Loading branch information
Showing
14 changed files
with
119 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ const util = require('util'); | |
|
||
const LOG_VERBOSE = getBoolean(process.env.EE_OPENAPI_VERBOSE); | ||
|
||
const { accountIdSchema, addressSchema } = require('../schemas'); | ||
const { accountIdSchema, addressSchema, messageSpecialUseSchema } = require('../schemas'); | ||
|
||
function getDateValue(str) { | ||
try { | ||
|
@@ -454,10 +454,7 @@ async function init(args) { | |
.example([{ address: '[email protected]' }]) | ||
.label('AddressList'), | ||
subject: Joi.string().allow('').example('What a wonderful message').description('Message subject'), | ||
messageSpecialUse: Joi.string() | ||
.example('\\Sent') | ||
.valid('\\Drafts', '\\Junk', '\\Sent', '\\Trash', '\\Inbox') | ||
.description('Special use flag of the message') | ||
messageSpecialUse: messageSpecialUseSchema | ||
}) | ||
.description('Email that best matched the question') | ||
.label('ChatResponseMessage') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.